org.shapelogic.streams
Class AbstractScriptingListStreamTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.shapelogic.streams.AbstractListStreamTests
              extended by org.shapelogic.streams.AbstractScriptingListStreamTests
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
FunctionGroovyStreamTest, FunctionJavaScriptStreamTest, FunctionJRubyStreamTest

public abstract class AbstractScriptingListStreamTests
extends AbstractListStreamTests

Add tests that are specific for Scripting implementations of streams.

Author:
Sami Badawi

Field Summary
protected  java.lang.String _filterFunctionExpressionEven
           
protected  java.lang.String _filterFunctionExpressionEvenNoPartName
           
protected  java.lang.String _filterFunctionExpressionThird
           
protected  java.lang.String _language
           
 
Fields inherited from class org.shapelogic.streams.AbstractListStreamTests
_disableTests, fibonacciNumbersAfterOneIteration, fibonacciNumbersAtStart
 
Constructor Summary
AbstractScriptingListStreamTests()
           
 
Method Summary
 void testAddListStream0()
           
 void testAddListStream0NoPartName()
           
 void testMakeFunctionBooleanCalc1()
          Take a named input stream and make a filter based on a scripting function.
 void testMakeFunctionBooleanCalc1BinaryPredicate()
          Take a named input stream and make a filter based on a scripting function.
 void testNamedFilterStream()
          Take a named input stream and make a filter based on a scripting function.
 void testNamedFilterStreamWithBinaryPredicateInput()
          Take a named input stream and make a filter based on a scripting function.
 
Methods inherited from class org.shapelogic.streams.AbstractListStreamTests
assertNumberEquals, setUp, testCount, testFailedGet, testFibonacci, testGet, testGetCurrent, testHasNext, testSum, testSumOfIterable
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

_language

protected java.lang.String _language

_filterFunctionExpressionEven

protected java.lang.String _filterFunctionExpressionEven

_filterFunctionExpressionThird

protected java.lang.String _filterFunctionExpressionThird

_filterFunctionExpressionEvenNoPartName

protected java.lang.String _filterFunctionExpressionEvenNoPartName
Constructor Detail

AbstractScriptingListStreamTests

public AbstractScriptingListStreamTests()
Method Detail

testNamedFilterStreamWithBinaryPredicateInput

public void testNamedFilterStreamWithBinaryPredicateInput()
Take a named input stream and make a filter based on a scripting function.
So this should only be run for the Scripting function based tests.


testNamedFilterStream

public void testNamedFilterStream()
Take a named input stream and make a filter based on a scripting function.
So this should only be run for the Scripting function based tests.


testAddListStream0

public void testAddListStream0()

testAddListStream0NoPartName

public void testAddListStream0NoPartName()

testMakeFunctionBooleanCalc1

public void testMakeFunctionBooleanCalc1()
Take a named input stream and make a filter based on a scripting function.
So this should only be run for the Scripting function based tests.


testMakeFunctionBooleanCalc1BinaryPredicate

public void testMakeFunctionBooleanCalc1BinaryPredicate()
Take a named input stream and make a filter based on a scripting function.
So this should only be run for the Scripting function based tests.



Copyright © 2009. All Rights Reserved.