private String createFileName(final Type testCaseType) { final String type = testCaseType.toString(); return "TEST-" + type + ".xml"; }
@Override protected void renderTestDocTypeStart(final UnitTestDoc testDoc) { final Type type = testDoc.getUutType(); final String id = type.toString(); final String name = type.getTypeName(); sink.section3(); helper.renderAnchor(id); sink.sectionTitle3(); sink.text(name + " (" + type.getPackageName() + ')'); sink.sectionTitle3_(); }
@Override protected void renderTestDocTypeStart(final UnitTestDoc testDoc) { final Type type = testDoc.getUutType(); final String id = type.toString(); final String name = type.getTypeName(); sink.section3(); helper.renderAnchor(id); sink.sectionTitle3(); sink.text(name + " (" + type.getPackageName() + ')'); sink.sectionTitle3_(); }
private void renderSections(final Section<UnitTestDoc> section, final int level) { final String name = section.getName(); final String sectionLabel = messages.getLabel(name); helper.renderSectionStart(level, sectionLabel); if (!section.containsSubSections()) { helper.renderIndexTableStart(); int counter = 1; for (final UnitTestDoc testDoc : section.getItems()) { final Type type = testDoc.getUutType(); final String label = type.getTypeName(); final String id = type.toString(); helper.renderIndexRow(counter, label, id); counter++; } helper.renderIndexTableEnd(); } else { final int nextLevel = level + 1; for (final Section<UnitTestDoc> subSection : section.getSubSections()) { renderSections(subSection, nextLevel); } } helper.renderSectionEnd(level); }
private void renderSections(final Section<UnitTestDoc> section, final int level) { final String name = section.getName(); final String sectionLabel = messages.getLabel(name); helper.renderSectionStart(level, sectionLabel); if (!section.containsSubSections()) { helper.renderIndexTableStart(); int counter = 1; for (final UnitTestDoc testDoc : section.getItems()) { final Type type = testDoc.getUutType(); final String label = type.getTypeName(); final String id = type.toString(); helper.renderIndexRow(counter, label, id); counter++; } helper.renderIndexTableEnd(); } else { final int nextLevel = level + 1; for (final Section<UnitTestDoc> subSection : section.getSubSections()) { renderSections(subSection, nextLevel); } } helper.renderSectionEnd(level); }