jimm.datavision.test
Class SubreportRunTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jimm.datavision.test.SubreportRunTest
All Implemented Interfaces:
junit.framework.Test

public class SubreportRunTest
extends junit.framework.TestCase

Reads a report from an XML file, runs it, and verifies the output. Uses the CharSepLE layout engine to produce a tab-delimited output file.

These tests are tightly coupled with the contents of the file test_sub.xml and the contents of the test database generated by the files in jimm/datavision/testdata.

Author:
Jim Menard, jimm@io.com

Field Summary
protected static java.io.File EXAMPLE_REPORT
           
protected static java.lang.String[] OFFICES
           
protected static java.io.File OUT_FILE
           
protected  Report report
           
protected static java.lang.String REPORT_DATE_FORMAT
           
protected static java.lang.String REPORT_TITLE
           
protected static java.lang.String STRING_PARAM_VALUE
           
 
Constructor Summary
SubreportRunTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testMultipleJoins()
           
 void testReportRun()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXAMPLE_REPORT

protected static final java.io.File EXAMPLE_REPORT

OUT_FILE

protected static final java.io.File OUT_FILE

REPORT_DATE_FORMAT

protected static final java.lang.String REPORT_DATE_FORMAT
See Also:
Constant Field Values

OFFICES

protected static final java.lang.String[] OFFICES

STRING_PARAM_VALUE

protected static final java.lang.String STRING_PARAM_VALUE
See Also:
Constant Field Values

REPORT_TITLE

protected static final java.lang.String REPORT_TITLE
See Also:
Constant Field Values

report

protected Report report
Constructor Detail

SubreportRunTest

public SubreportRunTest(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testReportRun

public void testReportRun()
                   throws java.io.IOException,
                          java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

testMultipleJoins

public void testMultipleJoins()
                       throws java.io.IOException,
                              java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

main

public static void main(java.lang.String[] args)