PageableHTMLOutput extends AbstractHtmlOutput { public void setPrinter( final AllItemsHtmlPrinter printer ) { this.printer = printer; } PageableHTMLOutput(); Object getReportLock(); ProxyOutputStream getProxyOutputStream(); void setProxyOutputStream( final ProxyOutputStream proxyOutputStream ); HtmlPrinter getPrinter(); void setPrinter( final AllItemsHtmlPrinter printer ); PageableReportProcessor getReportProcessor(); void setReportProcessor( final PageableReportProcessor proc ); int paginate( final MasterReport report, final int yieldRate ); int generate( final MasterReport report, final int acceptedPage, final OutputStream outputStream,
                       final int yieldRate ); boolean supportsPagination(); void close();  }
@Test public void testSetPrinter() throws Exception { Assert.assertNull( pageableHTMLOutput.getPrinter() ); AllItemsHtmlPrinter mockPrinter = mock( AllItemsHtmlPrinter.class ); pageableHTMLOutput.setPrinter( mockPrinter ); Assert.assertEquals( mockPrinter, pageableHTMLOutput.getPrinter() ); }