jimm.datavision.test
Class FormulaEvalTest

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

public class FormulaEvalTest
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 files eval.xml and eval.csv.

Author:
Jim Menard, jimm@io.com

Nested Class Summary
(package private)  class FormulaEvalTest.ExpectedLineModifier
          Lets us modify the "standard" expected results to match a particular test's output.
 
Field Summary
protected  CharSepSource dataSource
           
protected static java.lang.String EVAL_DATA_FILE
           
protected static java.io.File EVAL_REPORT
           
protected static java.lang.String[] EVAL_RESULTS
           
protected static java.io.File OUT_FILE
           
protected static java.io.File PARAM_INPUT_FILE
           
protected  Report report
           
 
Constructor Summary
FormulaEvalTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
(package private)  void runEvalTest(FormulaEvalTest.ExpectedLineModifier elm)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testEvalAllVisible()
           
 void testEvalDetalInvisible()
           
 void testEvalHeaderInvisible()
           
 void testGroupHeaderInvisible()
           
 void testParamInSuppressionProc()
           
 
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

EVAL_REPORT

protected static final java.io.File EVAL_REPORT

EVAL_DATA_FILE

protected static final java.lang.String EVAL_DATA_FILE

OUT_FILE

protected static final java.io.File OUT_FILE

PARAM_INPUT_FILE

protected static final java.io.File PARAM_INPUT_FILE

EVAL_RESULTS

protected static final java.lang.String[] EVAL_RESULTS

report

protected Report report

dataSource

protected CharSepSource dataSource
Constructor Detail

FormulaEvalTest

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

testEvalAllVisible

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

testEvalDetalInvisible

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

testEvalHeaderInvisible

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

testGroupHeaderInvisible

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

testParamInSuppressionProc

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

runEvalTest

void runEvalTest(FormulaEvalTest.ExpectedLineModifier elm)
           throws java.io.FileNotFoundException,
                  java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

main

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