@Test public void create_description_simple_name_results_in_variant_description_and_simple_name() { assertEquals(" - variant: xxx", generatorToTest.createDescriptionForVariant("xxx")); assertEquals(" - variant: simple-name", generatorToTest.createDescriptionForVariant("simple-name")); }
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);  }