java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.commons.lang.builder.EqualsBuilderTest
- All Implemented Interfaces:
- junit.framework.Test
- public class EqualsBuilderTest
- extends junit.framework.TestCase
Unit tests EqualsBuilder.
- Version:
- $Id: EqualsBuilderTest.java 161244 2005-04-14 06:16:36Z ggregory $
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
EqualsBuilderTest
public EqualsBuilderTest(java.lang.String name)
main
public static void main(java.lang.String[] args)
suite
public static junit.framework.Test suite()
setUp
protected void setUp()
throws java.lang.Exception
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
tearDown
protected void tearDown()
throws java.lang.Exception
- Description copied from class:
junit.framework.TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
testReflectionEquals
public void testReflectionEquals()
testReflectionHierarchyEquals
public void testReflectionHierarchyEquals()
testReflectionHierarchyEquals
public void testReflectionHierarchyEquals(boolean testTransients)
testReflectionEqualsEquivalenceRelationship
public void testReflectionEqualsEquivalenceRelationship(EqualsBuilderTest.TestObject to,
EqualsBuilderTest.TestObject toBis,
EqualsBuilderTest.TestObject toTer,
EqualsBuilderTest.TestObject to2,
EqualsBuilderTest.TestObject oToChange,
boolean testTransients)
- Equivalence relationship tests inspired by "Effective Java":
- reflection
- symmetry
- transitive
- consistency
- non-null reference
testSuper
public void testSuper()
testObject
public void testObject()
testLong
public void testLong()
testInt
public void testInt()
testShort
public void testShort()
testChar
public void testChar()
testByte
public void testByte()
testDouble
public void testDouble()
testFloat
public void testFloat()
testAccessors
public void testAccessors()
testBoolean
public void testBoolean()
testObjectArray
public void testObjectArray()
testLongArray
public void testLongArray()
testIntArray
public void testIntArray()
testShortArray
public void testShortArray()
testCharArray
public void testCharArray()
testByteArray
public void testByteArray()
testDoubleArray
public void testDoubleArray()
testFloatArray
public void testFloatArray()
testBooleanArray
public void testBooleanArray()
testMultiLongArray
public void testMultiLongArray()
testMultiIntArray
public void testMultiIntArray()
testMultiShortArray
public void testMultiShortArray()
testMultiCharArray
public void testMultiCharArray()
testMultiByteArray
public void testMultiByteArray()
testMultiFloatArray
public void testMultiFloatArray()
testMultiDoubleArray
public void testMultiDoubleArray()
testMultiBooleanArray
public void testMultiBooleanArray()
testRaggedArray
public void testRaggedArray()
testMixedArray
public void testMixedArray()
testObjectArrayHiddenByObject
public void testObjectArrayHiddenByObject()
testLongArrayHiddenByObject
public void testLongArrayHiddenByObject()
testIntArrayHiddenByObject
public void testIntArrayHiddenByObject()
testShortArrayHiddenByObject
public void testShortArrayHiddenByObject()
testCharArrayHiddenByObject
public void testCharArrayHiddenByObject()
testByteArrayHiddenByObject
public void testByteArrayHiddenByObject()
testDoubleArrayHiddenByObject
public void testDoubleArrayHiddenByObject()
testFloatArrayHiddenByObject
public void testFloatArrayHiddenByObject()
testBooleanArrayHiddenByObject
public void testBooleanArrayHiddenByObject()
testUnrelatedClasses
public void testUnrelatedClasses()
- Tests two instances of classes that can be equal and that are not "related". The two classes are not subclasses
of each other and do not share a parent aside from Object.
See http://issues.apache.org/bugzilla/show_bug.cgi?id=33069
testNpeForNullElement
public void testNpeForNullElement()
- Test from http://issues.apache.org/bugzilla/show_bug.cgi?id=33067