javautils
Class ImmutablePairTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--javautils.ImmutablePairTest
All Implemented Interfaces:
junit.framework.Test

public class ImmutablePairTest
extends junit.framework.TestCase

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

ImmutablePairTest

public ImmutablePairTest()
Method Detail

testHashCode

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.


testEquals

public void testEquals()

Tests that the ImmutablePair.equals(java.lang.Object)-method gives the expected result on a couple of test cases.