Welcome
This document provides you with a process for creating reporting engine unit tests. The purpose of this document is:
...
All the generated reports are compared with a golden version of reports which have been generated using a latest stable version of Pentaho Reporting Engine. Before testing a new report definition, a golden report needs to be generated and placed in the golden report path. The golden report path can be retrieved by using a parent class variable reportInputPath. Every unit test generates a report which is stored in a report output path. The report output path can be accessed by using a parent class variable reportOutputPath.
In order to create a report you must first create an object of type JFreeReport. JFreeReport object can be created by passing in the report definition file to a base method parseReport. After creating the JFreeReport object you need to map the data which will be used by the JFreeReport to generate this report. JFreeReport uses the Swing table model structure to accept the data for the Report. The report data is created by using the SQL query in class which extends JdbcTableModel. The JdbcTableModel converts the IPentahoResultSet to a AbstractTableModel. Below is an example as to how to create a Report Data.
...