@Test public void create_description_null_and_empty_return_empty_string() { assertEquals("", generatorToTest.createDescriptionForVariant(null)); assertEquals("", generatorToTest.createDescriptionForVariant("")); }
protected String createDescriptionForVariant(String variant) { String description = ""; if (variant != null && !variant.isEmpty()) { description = " - variant: " + PATTERN_MATCH_UNDERSCORE.matcher(variant).replaceAll(" ").trim(); } return description; }
UseCaseAsciiDocGenerator { protected String createDescriptionForVariant(String variant) { String description = ""; if (variant != null && !variant.isEmpty()) { description = " - variant: " + PATTERN_MATCH_UNDERSCORE.matcher(variant).replaceAll(" ").trim(); } return description; } }
UseCaseAsciiDocGenerator { protected String createDescriptionForVariant(String variant) { String description = ""; if (variant != null && !variant.isEmpty()) { description = " - variant: " + PATTERN_MATCH_UNDERSCORE.matcher(variant).replaceAll(" ").trim(); } return description; }  }
UseCaseAsciiDocGenerator { protected String createDescriptionForVariant(String variant) { String description = ""; if (variant != null && !variant.isEmpty()) { description = " - variant: " + PATTERN_MATCH_UNDERSCORE.matcher(variant).replaceAll(" ").trim(); } return description; }  String generateAsciidoc(UseCaseModel model, File diagramsGenFolder); String generateAsciidoc(UseCaseModel model, File diagramsGenFolder, boolean connectUsecaseWithMessage, boolean showEventDiagrams); }
UseCaseAsciiDocGenerator { protected String createDescriptionForVariant(String variant) { String description = ""; if (variant != null && !variant.isEmpty()) { description = " - variant: " + PATTERN_MATCH_UNDERSCORE.matcher(variant).replaceAll(" ").trim(); } return description; }  String generateAsciidoc(UseCaseModel model, File diagramsGenFolder); String generateAsciidoc(UseCaseModel model, File diagramsGenFolder, boolean connectUsecaseWithMessage, boolean showEventDiagrams);  }