@Test public void testGenerateListener() throws Exception { ClassicEngineBoot.getInstance().start(); rtfOutput.generate(new MasterReport(), 1, new ByteArrayOutputStream(), 1); verify(listener, times(1)).reportProcessingStarted(any(ReportProgressEvent.class)); verify(listener, times(1)).reportProcessingFinished(any(ReportProgressEvent.class)); verify(listener, atLeastOnce()).reportProcessingUpdate(any(ReportProgressEvent.class)); }
@Test public void testSupportsPagination() throws Exception { Assert.assertEquals(false, rtfOutput.supportsPagination()); }
@Test public void testGetReportLock() throws Exception { Assert.assertEquals(rtfOutput, rtfOutput.getReportLock()); }
@Test public void testPaginate() throws Exception { Assert.assertEquals(0, rtfOutput.paginate(null, 0)); }