/** * {@inheritDoc} * * @see de.smartics.testdoc.maven.export.AbstractReportExporter#renderTestCase(de.smartics.testdoc.report.doc.ScenarioTestDoc) */ @Override protected void renderTestCase(final ScenarioTestDoc scenario) throws IOException { try { final TestMethodDoc testMethodDoc = scenario.getTestMethod(); final Type type = scenario.getTestCaseType(); xmlWriter.writeStartElement(TESTDOC_NS, "test-case"); writeType(type); final ExternalReportReferences refs = testDocHelper.getReports(); renderReports(type, refs.getTestCaseReports(), testMethodDoc); xmlWriter.writeEndElement(); } catch (final XMLStreamException e) { throw new IOException("Cannot write test case.", e); } }
/** * {@inheritDoc} * * @see de.smartics.testdoc.maven.export.AbstractReportExporter#renderTestCase(de.smartics.testdoc.report.doc.ScenarioTestDoc) */ @Override protected void renderTestCase(final ScenarioTestDoc scenario) throws IOException { try { final TestMethodDoc testMethodDoc = scenario.getTestMethod(); final Type type = scenario.getTestCaseType(); xmlWriter.writeStartElement(TESTDOC_NS, "test-case"); writeType(type); final ExternalReportReferences refs = testDocHelper.getReports(); renderReports(type, refs.getTestCaseReports(), testMethodDoc); xmlWriter.writeEndElement(); } catch (final XMLStreamException e) { throw new IOException("Cannot write test case.", e); } }
final ExternalReportReferences reports = testDocHelper.getReports(); renderTestDocUutReportLinks(type, reports);
final ExternalReportReferences reports = testDocHelper.getReports(); renderTestDocUutReportLinks(type, reports);
@Override protected void renderTestCase(final ScenarioTestDoc scenario) { if (informationFilter.isShowTestCase()) { sink.tableCell(); final Type testCase = scenario.getTestCaseType(); sink.text(testCase.getTypeName()); final ExternalReportReferences reportRefs = testDocHelper.getReports(); final List<ExternalReport> reports = reportRefs.getTestCaseReports(); if (!reports.isEmpty()) { sink.text(": "); final ScenarioLinkRenderer linkRenderer = new ScenarioLinkRenderer(sink, messages, scenario); for (final ExternalReport report : reports) { linkRenderer.renderTestMethodLink(report); } } sink.tableCell_(); } }
@Override protected void renderTestCase(final ScenarioTestDoc scenario) { if (informationFilter.isShowTestCase()) { sink.tableCell(); final Type testCase = scenario.getTestCaseType(); sink.text(testCase.getTypeName()); final ExternalReportReferences reportRefs = testDocHelper.getReports(); final List<ExternalReport> reports = reportRefs.getTestCaseReports(); if (!reports.isEmpty()) { sink.text(": "); final ScenarioLinkRenderer linkRenderer = new ScenarioLinkRenderer(sink, messages, scenario); for (final ExternalReport report : reports) { linkRenderer.renderTestMethodLink(report); } } sink.tableCell_(); } }