jimm.datavision.test
Class GroupFormulaTest

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

public class GroupFormulaTest
extends junit.framework.TestCase

Tests formula evals when formulas are hidden or appear multiple times.

These tests are tightly coupled with the contents of the group_formulas_* files.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  CharSepSource dataSource
           
protected static java.lang.String GROUP_EVAL_DATA_FILE
           
protected static java.lang.String GROUP_EVAL_EXPECTED_FILE
           
protected static java.io.File GROUP_EVAL_REPORT
           
protected static java.io.File OUT_FILE
           
protected  Report report
           
 
Constructor Summary
GroupFormulaTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testGroupHeaderFormula()
           
 
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

OUT_FILE

protected static final java.io.File OUT_FILE

GROUP_EVAL_REPORT

protected static final java.io.File GROUP_EVAL_REPORT

GROUP_EVAL_DATA_FILE

protected static final java.lang.String GROUP_EVAL_DATA_FILE

GROUP_EVAL_EXPECTED_FILE

protected static final java.lang.String GROUP_EVAL_EXPECTED_FILE

report

protected Report report

dataSource

protected CharSepSource dataSource
Constructor Detail

GroupFormulaTest

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

testGroupHeaderFormula

public void testGroupHeaderFormula()
                            throws java.io.IOException,
                                   java.io.FileNotFoundException,
                                   org.xml.sax.SAXException
Throws:
java.io.IOException
java.io.FileNotFoundException
org.xml.sax.SAXException

main

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