AsyncReportStatusListener implements IAsyncReportListener { @Override public String toString() { return "AsyncReportStatusListener{" + "path='" + path + '\'' + ", uuid=" + uuid + ", status=" + status + ", progress=" + progress + ", page=" + page + ", totalPages=" + totalPages + ", generatedPage=" + generatedPage + ", activity='" + activity + '\'' + ", row=" + row + ", firstPageMode=" + firstPageMode + ", mimeType='" + mimeType + '\'' + ", errorMessage='" + errorMessage + '\'' + '}'; } AsyncReportStatusListener( final String path,
                                    final UUID uuid,
                                    final String mimeType,
                                    final List<? extends ReportProgressListener> callbackListeners ); @Override synchronized void setStatus( final AsyncExecutionStatus status ); @Override synchronized void setErrorMessage( final String errorMessage ); boolean isFirstPageMode(); synchronized void setRequestedPage( final int requestedPage ); @Override synchronized int getRequestedPage(); @Override synchronized void updateGenerationStatus( final int generatedPage ); @Override synchronized boolean isScheduled(); @Override synchronized void reportProcessingStarted( final ReportProgressEvent event ); @Override synchronized void reportProcessingUpdate( final ReportProgressEvent event ); @Override synchronized void reportProcessingFinished( final ReportProgressEvent event ); @Override String toString(); synchronized IAsyncReportState getState(); boolean isQueryLimitReached(); @Override void setIsQueryLimitReached( boolean isQueryLimitReached ); @Override int getTotalRows(); synchronized void cancel();  }
@Test public void testTostring() { final ModifiableConfiguration edConf = ClassicEngineBoot.getInstance().getEditableConfig(); edConf.setConfigProperty( "org.pentaho.reporting.platform.plugin.output.FirstPageMode", "true" ); final AsyncReportStatusListener listener = new AsyncReportStatusListener( "", UUID.fromString( STUV_UUID ), "", Collections.<ReportProgressListener>emptyList() ); listener.setErrorMessage( STUV_UUID ); assertEquals( STUB, listener.toString() ); edConf.setConfigProperty( "org.pentaho.reporting.platform.plugin.output.FirstPageMode", "false" ); }