test.jmock.core.constraint
Class IsEqualTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bytest.jmock.core.constraint.AbstractConstraintsTest
              extended bytest.jmock.core.constraint.IsEqualTest
All Implemented Interfaces:
Test

public class IsEqualTest
extends AbstractConstraintsTest


Field Summary
 
Fields inherited from class test.jmock.core.constraint.AbstractConstraintsTest
ANY_NON_NULL_ARGUMENT, ARGUMENT_IGNORED, FALSE_CONSTRAINT, NEVER_EVALUATED, TRUE_CONSTRAINT
 
Constructor Summary
IsEqualTest()
           
 
Method Summary
 void testCanCompareNullValues()
           
 void testComparesObjectsUsingEqualsMethod()
           
 void testComparesTheElementsOfAnArrayOfPrimitiveTypes()
           
 void testComparesTheElementsOfAnObjectArray()
           
 void testIncludesTheResultOfCallingToStringOnItsArgumentInTheDescription()
           
 void testRecursivelyTestsElementsOfArrays()
           
 void testReturnsAnObviousDescriptionIfCreatedWithANestedConstraintByMistake()
           
 void testReturnsGoodDescriptionIfCreatedWithNullReference()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsEqualTest

public IsEqualTest()
Method Detail

testComparesObjectsUsingEqualsMethod

public void testComparesObjectsUsingEqualsMethod()

testCanCompareNullValues

public void testCanCompareNullValues()

testComparesTheElementsOfAnObjectArray

public void testComparesTheElementsOfAnObjectArray()

testComparesTheElementsOfAnArrayOfPrimitiveTypes

public void testComparesTheElementsOfAnArrayOfPrimitiveTypes()

testRecursivelyTestsElementsOfArrays

public void testRecursivelyTestsElementsOfArrays()

testIncludesTheResultOfCallingToStringOnItsArgumentInTheDescription

public void testIncludesTheResultOfCallingToStringOnItsArgumentInTheDescription()

testReturnsAnObviousDescriptionIfCreatedWithANestedConstraintByMistake

public void testReturnsAnObviousDescriptionIfCreatedWithANestedConstraintByMistake()

testReturnsGoodDescriptionIfCreatedWithNullReference

public void testReturnsGoodDescriptionIfCreatedWithNullReference()