@Test public void should_addAStyleSequence_withDefaultValue() throws Exception { List<FixtureCallResult> fixtureCallResults = new ArrayList<FixtureCallResult>(); String actualScript = tested.getPlantUmlScript(fixtureCallResults); String actual = new Text(actualScript).after("@startuml\n").until(DEFAULT_STYLE.length()); assertEquals(DEFAULT_STYLE, actual); }
public String getPlantUmlScript(List<FixtureCallResult> fixtureCallResults) { String plantUml = "@startuml\n" + style + "\n"; for (FixtureCallResult fixtureCallResut : fixtureCallResults) { plantUml += generateSequence(fixtureCallResut); } plantUml += "@enduml"; return plantUml; }
PlantUmlSequenceDiagramGenerator { public String getPlantUmlScript(List<FixtureCallResult> fixtureCallResults) { String plantUml = "@startuml\n" + style + "\n"; for (FixtureCallResult fixtureCallResut : fixtureCallResults) { plantUml += generateSequence(fixtureCallResut); } plantUml += "@enduml"; return plantUml; } }
PlantUmlSequenceDiagramGenerator { public String getPlantUmlScript(List<FixtureCallResult> fixtureCallResults) { String plantUml = "@startuml\n" + style + "\n"; for (FixtureCallResult fixtureCallResut : fixtureCallResults) { plantUml += generateSequence(fixtureCallResut); } plantUml += "@enduml"; return plantUml; }  }
PlantUmlSequenceDiagramGenerator { public String getPlantUmlScript(List<FixtureCallResult> fixtureCallResults) { String plantUml = "@startuml\n" + style + "\n"; for (FixtureCallResult fixtureCallResut : fixtureCallResults) { plantUml += generateSequence(fixtureCallResut); } plantUml += "@enduml"; return plantUml; }  String getPlantUmlScript(List<FixtureCallResult> fixtureCallResults); String generateInstructionWithParameter(FixtureCall testFixture); }
PlantUmlSequenceDiagramGenerator { public String getPlantUmlScript(List<FixtureCallResult> fixtureCallResults) { String plantUml = "@startuml\n" + style + "\n"; for (FixtureCallResult fixtureCallResut : fixtureCallResults) { plantUml += generateSequence(fixtureCallResut); } plantUml += "@enduml"; return plantUml; }  String getPlantUmlScript(List<FixtureCallResult> fixtureCallResults); String generateInstructionWithParameter(FixtureCall testFixture); public String style; public String succeededColor; public String failedColor; public String ignoredColor; }