|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.junit.Assert
net.sf.molae.pipe.test.ObjectTest<B>
net.sf.molae.pipe.test.BinaryFunctionTest<B,S,S,T>
net.sf.molae.pipe.test.S2BinaryFunctionTest<B,S,T>
public class S2BinaryFunctionTest<B extends BinaryFunction<S,S,T>,S,T>
Test methods to check the contract of BinaryFunction
implementing classes where both operands have the same type.
| Constructor Summary | |
|---|---|
S2BinaryFunctionTest(B testObject)
Creates a new test with the specified candidate. |
|
| Method Summary | ||
|---|---|---|
static
|
getInstance(BinaryFunction<S,S,T> testObject)
Creates a new instance of this class with the specified testObject as test object. |
|
void |
testProperties(S arg1,
S arg2)
Performs various tests using the specified objects as arguments to the compute function of the tested binary function. |
|
void |
testProperties(S arg1,
S arg2,
S arg3)
Performs various tests using the specified objects as arguments to the compute function of the tested binary function. |
|
| Methods inherited from class net.sf.molae.pipe.test.BinaryFunctionTest |
|---|
assertConsistency, getInstance, testWith, testWith, testWith |
| Methods inherited from class net.sf.molae.pipe.test.ObjectTest |
|---|
assertFalse, assertTestValuesSet, getTestObject, setTestValuesSet, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public S2BinaryFunctionTest(B testObject)
testObject - the candidate of the test
NullPointerException - if the specified test objects is
null.| Method Detail |
|---|
public static final <S,T> S2BinaryFunctionTest<BinaryFunction<S,S,T>,S,T> getInstance(BinaryFunction<S,S,T> testObject)
testObject - the candidate of the test
NullPointerException - if the specified test objects is
null.
public void testProperties(S arg1,
S arg2)
arg1 - a valid left and right argument to the underlying binary
functionarg2 - a valid left and right argument to the underlying binary
function
AssertionFailedError - if the BinaryFunction
contract is broken by the test object.
public void testProperties(S arg1,
S arg2,
S arg3)
arg1 - a valid left and right argument to the underlying binary
functionarg2 - a valid left and right argument to the underlying binary
functionarg3 - a valid left and right argument to the underlying binary
function
AssertionFailedError - if the BinaryFunction
contract is broken by the test object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||