org.apache.commons.functor
Class BaseFunctorTest

java.lang.Object
  extended by org.apache.commons.functor.BaseFunctorTest
Direct Known Subclasses:
BaseComparisonPredicateTest, TestAbstractLoopProcedure, TestAnd, TestBinaryAnd, TestBinaryCompositeBinaryFunction, TestBinaryFunctionBinaryPredicate, TestBinaryFunctionBinaryProcedure, TestBinaryFunctionUnaryFunction, TestBinaryNot, TestBinaryOr, TestBinaryPredicateBinaryFunction, TestBinaryPredicateUnaryPredicate, TestBinaryProcedureBinaryFunction, TestBinaryProcedureUnaryProcedure, TestBinarySequence, TestBoundFunction, TestBoundPredicate, TestBoundProcedure, TestComparatorFunction, TestCompositeUnaryFunction, TestCompositeUnaryPredicate, TestCompositeUnaryProcedure, TestConditionalBinaryFunction, TestConditionalBinaryPredicate, TestConditionalBinaryProcedure, TestConditionalFunction, TestConditionalPredicate, TestConditionalProcedure, TestConditionalUnaryFunction, TestConditionalUnaryPredicate, TestConditionalUnaryProcedure, TestConstant, TestDoWhileProcedure, TestEachElement, TestFilteredIterable, TestFilteredIterator, TestFullyBoundFunction, TestFullyBoundPredicate, TestFullyBoundProcedure, TestFunctionPredicate, TestFunctionProcedure, TestFunctionUnaryFunction, TestIdentity, TestIgnoreLeftFunction, TestIgnoreLeftPredicate, TestIgnoreLeftProcedure, TestIgnoreRightFunction, TestIgnoreRightPredicate, TestIgnoreRightProcedure, TestIntegerRange, TestIsElementOf, TestIsEmpty, TestIsEqual, TestIsInstance, TestIsNotEqual, TestIsNotNull, TestIsNotSame, TestIsNull, TestIsSame, TestIsWithinRange, TestIteratorToGeneratorAdapter, TestLeftBoundFunction, TestLeftBoundPredicate, TestLeftBoundProcedure, TestLeftIdentity, TestLimit, TestLongRange, TestMax, TestMin, TestNoOp, TestNot, TestOffset, TestOr, TestPredicateFunction, TestPredicateUnaryPredicate, TestProcedureFunction, TestProcedureUnaryProcedure, TestRightBoundFunction, TestRightBoundPredicate, TestRightBoundProcedure, TestRightIdentity, TestSequence, TestSize, TestTransformedIterator, TestTransposedFunction, TestTransposedPredicate, TestTransposedProcedure, TestUnaryAnd, TestUnaryCompositeBinaryFunction, TestUnaryCompositeBinaryPredicate, TestUnaryFunctionUnaryPredicate, TestUnaryFunctionUnaryProcedure, TestUnaryNot, TestUnaryOr, TestUnaryPredicateUnaryFunction, TestUnaryProcedureUnaryFunction, TestUnarySequence, TestWhileDoProcedure

public abstract class BaseFunctorTest
extends Object

Version:
$Revision: 1171255 $ $Date: 2011-09-15 22:27:39 +0200 (Thu, 15 Sep 2011) $
Author:
Rodney Waldhoff

Constructor Summary
BaseFunctorTest()
           
 
Method Summary
static void assertObjectsAreEqual(Object a, Object b)
           
static void assertObjectsAreNotEqual(Object a, Object b)
           
protected abstract  Object makeFunctor()
           
 void testObjectEquals()
           
 void testSerializeDeserializeThenCompare()
           
 void testToStringIsOverridden()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseFunctorTest

public BaseFunctorTest()
Method Detail

makeFunctor

protected abstract Object makeFunctor()
                               throws Exception
Throws:
Exception

testObjectEquals

public final void testObjectEquals()
                            throws Exception
Throws:
Exception

testSerializeDeserializeThenCompare

public final void testSerializeDeserializeThenCompare()
                                               throws Exception
Throws:
Exception

testToStringIsOverridden

public void testToStringIsOverridden()
                              throws Exception
Throws:
Exception

assertObjectsAreEqual

public static void assertObjectsAreEqual(Object a,
                                         Object b)

assertObjectsAreNotEqual

public static void assertObjectsAreNotEqual(Object a,
                                            Object b)


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.