| |
|
| jimm.datavision.test.CharSepTest
CharSepTest | public class CharSepTest extends TestCase (Code) | | Reads a report from an XML file, runs it, and verifies the output. Uses
a
CharSepSource data source and the
CharSepLE layout engine
to produce a tab-delimited output file.
These tests are tightly coupled with the contents of the files
charsep.xml and charsep_data.csv .
author: Jim Menard, jimm@io.com |
DATA_FILE_WITH_SHORT_LINES | final protected static String DATA_FILE_WITH_SHORT_LINES(Code) | | |
EMPTY_DATA_FILE | final protected static String EMPTY_DATA_FILE(Code) | | |
EXAMPLE_REPORT | final protected static File EXAMPLE_REPORT(Code) | | |
OUT_FILE | final protected static File OUT_FILE(Code) | | |
REPORT_DATE_FORMAT | final protected static String REPORT_DATE_FORMAT(Code) | | |
REPORT_TITLE | final protected static String REPORT_TITLE(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) | | |
testColumnInfo | public void testColumnInfo()(Code) | | |
testEmptyFile | public void testEmptyFile()(Code) | | |
testNoRecords | public void testNoRecords()(Code) | | |
testShortInputLines | public void testShortInputLines()(Code) | | |
|
|
|