jigcell.compare.tests
Class TransformTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jigcell.compare.tests.TransformTests
All Implemented Interfaces:
junit.framework.Test

public class TransformTests
extends junit.framework.TestCase

A collection of tests to exercise the included transforms.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Constructor Summary
TransformTests(java.lang.String name)
          Creates a new transform test.
 
Method Summary
static void main(java.lang.String[] args)
          Starts a new test suite run.
protected static void setExtremaTestTransformBadMaxMin(ExtremaTestTransform transform, java.lang.String value)
          Sets the maximum and minimum values expecting failure.
static junit.framework.Test suite()
          All of the tests in this test.
 void testBoxTransformContainer()
          Test for data passing through.
 void testConstantTransform()
          Test for data passing through.
 void testExtremaTestTransform1()
          Test for extrema testing empty input.
 void testExtremaTestTransform2()
          Test for extrema testing numeric input.
 void testExtremaTestTransform3()
          Test for extrema testing invalid input.
 void testExtremaTestTransform4()
          Test for extrema testing numeric input with a minimum that will fail.
 void testExtremaTestTransform5()
          Test for extrema testing numeric input with a minimum that will pass.
 void testExtremaTestTransform6()
          Test for extrema testing numeric input with a maximum that will fail.
 void testExtremaTestTransform7()
          Test for extrema testing numeric input with a maximum that will pass.
 void testExtremaTestTransform8()
          Test for extrema testing with a minimum and maximum that will pass.
 void testExtremaTestTransform9()
          Test for setting invalid minimums and maximums.
 void testFileTransforms1()
          Test for marking as runnable.
 void testFileTransforms2()
          Test for persisting data.
 void testInputTransform1()
          Test for enabling result name control.
 void testInputTransform2()
          Test for setting the result name.
 void testInputTransform3()
          Test for setting the runnable state.
 void testInputTransform4()
          Test for passing data through.
 void testScriptEvaluationTransform1()
          Test for evaluating an empty script.
 void testScriptEvaluationTransform2()
          Test for evaluating a simple script.
 void testScriptEvaluationTransform3()
          Test for setting the Comparator option.
 void testScriptEvaluationTransform4()
          Test for class import resolution.
 void testScriptEvaluationTransform5()
          Test for a script with no input.
 void testScriptEvaluationTransform6()
          Test for a script with simple input.
 void testScriptEvaluationTransform7()
          Test for using math in a script.
 void testScriptEvaluationTransform8()
          Test for defining functions in a script.
 void testScriptEvaluationTransform9()
          Test for passing object data through a script.
 void testSelectColumnsTransform1()
          Test for selecting no columns.
 void testSelectColumnsTransform2()
          Test for selecting one column.
 void testSelectColumnsTransform3()
          Test for selecting multiple columns.
 void testSelectColumnsTransform4()
          Test for selecting repeating and out of order columns.
 void testTransformEvaluationTransform1()
          Test finding a target transform.
 void testTransformEvaluationTransform2()
          Test finding a target transform when multiple transforms to choose from.
 void testTransformEvaluationTransform3()
          Test finding a target transform when multiple transforms to choose from.
 void testTransformEvaluationTransform4()
          Test for runnable state.
 void testTransformEvaluationTransform5()
          Test for failing when no transforms exists.
 void testTransformEvaluationTransform6()
          Test for failing when no transform with target name exists.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 

Constructor Detail

TransformTests

public TransformTests(java.lang.String name)
Creates a new transform test.

Parameters:
name - Test name
Method Detail

main

public static void main(java.lang.String[] args)
Starts a new test suite run.

Parameters:
args - Program arguments

suite

public static junit.framework.Test suite()
All of the tests in this test.


setExtremaTestTransformBadMaxMin

protected static void setExtremaTestTransformBadMaxMin(ExtremaTestTransform transform,
                                                       java.lang.String value)
Sets the maximum and minimum values expecting failure.

Parameters:
transform - Transform
value - Value

testBoxTransformContainer

public void testBoxTransformContainer()
                               throws java.lang.Exception
Test for data passing through.

Throws:
java.lang.Exception

testConstantTransform

public void testConstantTransform()
                           throws java.lang.Exception
Test for data passing through.

Throws:
java.lang.Exception

testExtremaTestTransform1

public void testExtremaTestTransform1()
                               throws java.lang.Exception
Test for extrema testing empty input.

Throws:
java.lang.Exception

testExtremaTestTransform2

public void testExtremaTestTransform2()
                               throws java.lang.Exception
Test for extrema testing numeric input.

Throws:
java.lang.Exception

testExtremaTestTransform3

public void testExtremaTestTransform3()
                               throws java.lang.Exception
Test for extrema testing invalid input.

Throws:
java.lang.Exception

testExtremaTestTransform4

public void testExtremaTestTransform4()
                               throws java.lang.Exception
Test for extrema testing numeric input with a minimum that will fail.

Throws:
java.lang.Exception

testExtremaTestTransform5

public void testExtremaTestTransform5()
                               throws java.lang.Exception
Test for extrema testing numeric input with a minimum that will pass.

Throws:
java.lang.Exception

testExtremaTestTransform6

public void testExtremaTestTransform6()
                               throws java.lang.Exception
Test for extrema testing numeric input with a maximum that will fail.

Throws:
java.lang.Exception

testExtremaTestTransform7

public void testExtremaTestTransform7()
                               throws java.lang.Exception
Test for extrema testing numeric input with a maximum that will pass.

Throws:
java.lang.Exception

testExtremaTestTransform8

public void testExtremaTestTransform8()
                               throws java.lang.Exception
Test for extrema testing with a minimum and maximum that will pass.

Throws:
java.lang.Exception

testExtremaTestTransform9

public void testExtremaTestTransform9()
                               throws java.lang.Exception
Test for setting invalid minimums and maximums.

Throws:
java.lang.Exception

testFileTransforms1

public void testFileTransforms1()
                         throws java.lang.Exception
Test for marking as runnable.

Throws:
java.lang.Exception

testFileTransforms2

public void testFileTransforms2()
                         throws java.lang.Exception
Test for persisting data.

Throws:
java.lang.Exception

testInputTransform1

public void testInputTransform1()
                         throws java.lang.Exception
Test for enabling result name control.

Throws:
java.lang.Exception

testInputTransform2

public void testInputTransform2()
                         throws java.lang.Exception
Test for setting the result name.

Throws:
java.lang.Exception

testInputTransform3

public void testInputTransform3()
                         throws java.lang.Exception
Test for setting the runnable state.

Throws:
java.lang.Exception

testInputTransform4

public void testInputTransform4()
                         throws java.lang.Exception
Test for passing data through.

Throws:
java.lang.Exception

testScriptEvaluationTransform1

public void testScriptEvaluationTransform1()
                                    throws java.lang.Exception
Test for evaluating an empty script.

Throws:
java.lang.Exception

testScriptEvaluationTransform2

public void testScriptEvaluationTransform2()
                                    throws java.lang.Exception
Test for evaluating a simple script.

Throws:
java.lang.Exception

testScriptEvaluationTransform3

public void testScriptEvaluationTransform3()
                                    throws java.lang.Exception
Test for setting the Comparator option.

Throws:
java.lang.Exception

testScriptEvaluationTransform4

public void testScriptEvaluationTransform4()
                                    throws java.lang.Exception
Test for class import resolution.

Throws:
java.lang.Exception

testScriptEvaluationTransform5

public void testScriptEvaluationTransform5()
                                    throws java.lang.Exception
Test for a script with no input.

Throws:
java.lang.Exception

testScriptEvaluationTransform6

public void testScriptEvaluationTransform6()
                                    throws java.lang.Exception
Test for a script with simple input.

Throws:
java.lang.Exception

testScriptEvaluationTransform7

public void testScriptEvaluationTransform7()
                                    throws java.lang.Exception
Test for using math in a script.

Throws:
java.lang.Exception

testScriptEvaluationTransform8

public void testScriptEvaluationTransform8()
                                    throws java.lang.Exception
Test for defining functions in a script.

Throws:
java.lang.Exception

testScriptEvaluationTransform9

public void testScriptEvaluationTransform9()
                                    throws java.lang.Exception
Test for passing object data through a script.

Throws:
java.lang.Exception

testSelectColumnsTransform1

public void testSelectColumnsTransform1()
                                 throws java.lang.Exception
Test for selecting no columns.

Throws:
java.lang.Exception

testSelectColumnsTransform2

public void testSelectColumnsTransform2()
                                 throws java.lang.Exception
Test for selecting one column.

Throws:
java.lang.Exception

testSelectColumnsTransform3

public void testSelectColumnsTransform3()
                                 throws java.lang.Exception
Test for selecting multiple columns.

Throws:
java.lang.Exception

testSelectColumnsTransform4

public void testSelectColumnsTransform4()
                                 throws java.lang.Exception
Test for selecting repeating and out of order columns.

Throws:
java.lang.Exception

testTransformEvaluationTransform1

public void testTransformEvaluationTransform1()
                                       throws java.lang.Exception
Test finding a target transform.

Throws:
java.lang.Exception

testTransformEvaluationTransform2

public void testTransformEvaluationTransform2()
                                       throws java.lang.Exception
Test finding a target transform when multiple transforms to choose from.

Throws:
java.lang.Exception

testTransformEvaluationTransform3

public void testTransformEvaluationTransform3()
                                       throws java.lang.Exception
Test finding a target transform when multiple transforms to choose from.

Throws:
java.lang.Exception

testTransformEvaluationTransform4

public void testTransformEvaluationTransform4()
                                       throws java.lang.Exception
Test for runnable state.

Throws:
java.lang.Exception

testTransformEvaluationTransform5

public void testTransformEvaluationTransform5()
                                       throws java.lang.Exception
Test for failing when no transforms exists.

Throws:
java.lang.Exception

testTransformEvaluationTransform6

public void testTransformEvaluationTransform6()
                                       throws java.lang.Exception
Test for failing when no transform with target name exists.

Throws:
java.lang.Exception