/** * {@inheritDoc} * * @see de.smartics.testdoc.report.index.ExportIndex#addToIndex(de.smartics.testdoc.core.doc.UnitTestDoc) */ @Override public void addToIndex(final UnitTestDoc testDoc) { final Type type = testDoc.getUutType(); final String typeName = type.getTypeName(); index.put(typeName, testDoc); }
throws IOException final Type type = testDoc.getUutType(); testDocHelper.filterScenarios(testDoc.getScenarios());
throws IOException final Type type = testDoc.getUutType(); testDocHelper.filterScenarios(testDoc.getScenarios());
/** * {@inheritDoc} * * @see de.smartics.testdoc.maven.export.AbstractReportExporter#renderTestDocTypeStart(de.smartics.testdoc.report.doc.UnitTestDoc) */ @Override protected void renderTestDocTypeStart(final UnitTestDoc testDoc) throws IOException { try { xmlWriter.writeStartElement(TESTDOC_NS, "uut-type"); final Type type = testDoc.getUutType(); writeType(type); xmlWriter.writeEndElement(); } catch (final XMLStreamException e) { throw new IOException("Cannot write test doc type start.", e); } }
/** * {@inheritDoc} * * @see de.smartics.testdoc.maven.export.AbstractReportExporter#renderTestDocTypeStart(de.smartics.testdoc.report.doc.UnitTestDoc) */ @Override protected void renderTestDocTypeStart(final UnitTestDoc testDoc) throws IOException { try { xmlWriter.writeStartElement(TESTDOC_NS, "uut-type"); final Type type = testDoc.getUutType(); writeType(type); xmlWriter.writeEndElement(); } catch (final XMLStreamException e) { throw new IOException("Cannot write test doc type start.", e); } }
/** * {@inheritDoc} * * @see de.smartics.testdoc.report.index.ExportIndex#addToIndex(de.smartics.testdoc.core.doc.UnitTestDoc) */ @Override public void addToIndex(final UnitTestDoc testDoc) { final Type type = testDoc.getUutType(); final String packageName = type.getPackageName(); final Map<String, UnitTestDoc> nameIndex = getNameIndex(packageName); final String typeName = type.getTypeName(); nameIndex.put(typeName, testDoc); }
@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); }