|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--javautils.ImmutablePairTest
A [JUnit]
test for ImmutablePair
.
Constructor Summary | |
ImmutablePairTest()
|
Method Summary | |
void |
testEquals()
Tests that the ImmutablePair.equals(java.lang.Object) -method gives the
expected result on a couple of test cases. |
void |
testHashCode()
Tests that the hash code of ImmutablePair -objects is not
symmetric and that the hash code is the same on a couple of
separately constructed pairs with equal values. |
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 |
public ImmutablePairTest()
Method Detail |
public void testHashCode()
Tests that the hash code of ImmutablePair
-objects is not
symmetric and that the hash code is the same on a couple of
separately constructed pairs with equal values.
public void testEquals()
Tests that the ImmutablePair.equals(java.lang.Object)
-method gives the
expected result on a couple of test cases.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |