| |
|
| jimm.datavision.test.ReportRunTest
ReportRunTest | public class ReportRunTest extends TestCase (Code) | | Reads a report from an XML file, runs it, and verifies the output. Uses
the {}@link CharSepLE} layout engine to produce a tab-delimited output
file.
These tests are tightly coupled with the contents of the files
test.xml and test_parameters.xml and the data
generated by the
MockDataSource .
author: Jim Menard, jimm@io.com |
EXAMPLE_REPORT | final protected static File EXAMPLE_REPORT(Code) | | |
OUT_FILE | final protected static File OUT_FILE(Code) | | |
PARAM_INPUT_FILE | final protected static File PARAM_INPUT_FILE(Code) | | |
REPORT_DATE_FORMAT | final protected static String REPORT_DATE_FORMAT(Code) | | |
REPORT_TITLE | final protected static String REPORT_TITLE(Code) | | |
STRING_PARAM_VALUE | final protected static String STRING_PARAM_VALUE(Code) | | |
officeRowNumber | protected int officeRowNumber(Code) | | |
postDateRowNumber | protected int postDateRowNumber(Code) | | |
reportRowNumber | protected int reportRowNumber(Code) | | |
checkDetailLine | protected int checkDetailLine(String line)(Code) | | Checks the format of a detail line and returns the integer id found
at the beginning of line. This is the same as the dollar amount.
Parameters: line - a detail line the id number |
checkOfficeGroup | protected int checkOfficeGroup(BufferedReader in, String officeName) throws IOException(Code) | | Checks a group (header plus detail lines) and returns the total
of the dollar amounts in the group.
Parameters: in - the input reader Parameters: officeName - the group name the total dollar amount in the group |
checkPostDateGroup | protected Object checkPostDateGroup(BufferedReader in) throws IOException(Code) | | Checks a subgroup (header plus detail lines) and returns the total
of the dollar amounts in the group. If the next report section is
not a subgroup, it will be a group total line; we return the line
Parameters: in - the input reader either an Integer containing the total or the next line readfrom the report |
suite | public static Test suite()(Code) | | |
tearDown | public void tearDown()(Code) | | |
testNoRecords | public void testNoRecords()(Code) | | |
|
|
|