HtmlViewFactory extends AbstractViewFactory { @Override public ViewableContainer createReportSummary() { return new HtmlReportSummary(this.outputStream); } HtmlViewFactory(final PrintStream stream, final URL cssUrl); static HtmlViewFactory create(final OutputStream stream, final URL cssURL); @Override ViewableContainer createView(final String id, final String title); @Override ViewableContainer createReportDetails(); @Override ViewableContainer createSection(final String id, final String title); @Override Viewable createSpecificationItem(final LinkedSpecificationItem item); @Override Viewable createTraceSummary(final Trace trace); @Override ViewableContainer createReportSummary(); @Override Viewable createTableOfContents(final ViewableContainer from);  }
@Test void testCreateReportSummary() { final Viewable view = this.factory.createReportSummary(); assertThat(view, instanceOf(HtmlReportSummary.class)); }