@Test public void create_description_replaces_underscores_with_spaces() { assertEquals(" - variant: x y z", generatorToTest.createDescriptionForVariant("x_y_z")); }
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);  }