HtmlViewFactory extends AbstractViewFactory { @Override public ViewableContainer createSection(final String id, final String title) { return new HtmlSection(this.outputStream, id, title); } 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 testCreateSection() { final ViewableContainer view = this.factory.createSection("id", "title"); assertThat(view, instanceOf(HtmlSection.class)); }