jimm.datavision.test
Class ReportTest

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

public class ReportTest
extends junit.framework.TestCase

Reads a report from an XML file, tests its structure, and tests various pieces like parameter and formula substitution.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  java.text.DecimalFormat dollarFormatter
           
protected static java.io.File EXAMPLE_REPORT
           
protected  java.text.DecimalFormat lastColFormatter
           
protected static java.io.File PARAM_INPUT_FILE
           
protected  Report report
           
 
Constructor Summary
ReportTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void refTest(java.lang.String formulaId, boolean shouldFindReference)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testAttributes()
           
 void testCaseSensitivity()
           
 void testCloning()
           
 void testFieldReferences()
           
 void testFormat()
           
 void testFormulaReferences()
           
 void testFormulas()
           
 void testHasParameterFields()
           
 void testIdGeneration()
           
 void testImages()
           
 void testNullFieldIds()
           
 void testPaperFormat()
           
 void testParameterReferences()
           
 void testParameters()
           
 void testSections()
           
 void testUserColumnReferences()
           
 
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

PARAM_INPUT_FILE

protected static final java.io.File PARAM_INPUT_FILE

report

protected Report report

dollarFormatter

protected java.text.DecimalFormat dollarFormatter

lastColFormatter

protected java.text.DecimalFormat lastColFormatter
Constructor Detail

ReportTest

public ReportTest(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

testAttributes

public void testAttributes()

testPaperFormat

public void testPaperFormat()

testImages

public void testImages()

testSections

public void testSections()

testFormulas

public void testFormulas()

testFormulaReferences

public void testFormulaReferences()

refTest

protected void refTest(java.lang.String formulaId,
                       boolean shouldFindReference)

testUserColumnReferences

public void testUserColumnReferences()

testParameterReferences

public void testParameterReferences()

testFieldReferences

public void testFieldReferences()

testParameters

public void testParameters()

testNullFieldIds

public void testNullFieldIds()

testCaseSensitivity

public void testCaseSensitivity()

testFormat

public void testFormat()

testCloning

public void testCloning()

testHasParameterFields

public void testHasParameterFields()

testIdGeneration

public void testIdGeneration()

main

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