Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.lang.builder
Class EqualsBuilderTest  view EqualsBuilderTest download EqualsBuilderTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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 $

Nested Class Summary
static class EqualsBuilderTest.TestACanEqualB
           
static class EqualsBuilderTest.TestBCanEqualA
           
(package private) static class EqualsBuilderTest.TestEmptySubObject
           
(package private) static class EqualsBuilderTest.TestObject
           
(package private) static class EqualsBuilderTest.TestSubObject
           
(package private) static class EqualsBuilderTest.TestTSubObject
           
(package private) static class EqualsBuilderTest.TestTSubObject2
           
(package private) static class EqualsBuilderTest.TestTTLeafObject
           
(package private) static class EqualsBuilderTest.TestTTSubObject
           
 
Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
EqualsBuilderTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
           
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testAccessors()
           
 void testBoolean()
           
 void testBooleanArray()
           
 void testBooleanArrayHiddenByObject()
           
 void testByte()
           
 void testByteArray()
           
 void testByteArrayHiddenByObject()
           
 void testChar()
           
 void testCharArray()
           
 void testCharArrayHiddenByObject()
           
 void testDouble()
           
 void testDoubleArray()
           
 void testDoubleArrayHiddenByObject()
           
 void testFloat()
           
 void testFloatArray()
           
 void testFloatArrayHiddenByObject()
           
 void testInt()
           
 void testIntArray()
           
 void testIntArrayHiddenByObject()
           
 void testLong()
           
 void testLongArray()
           
 void testLongArrayHiddenByObject()
           
 void testMixedArray()
           
 void testMultiBooleanArray()
           
 void testMultiByteArray()
           
 void testMultiCharArray()
           
 void testMultiDoubleArray()
           
 void testMultiFloatArray()
           
 void testMultiIntArray()
           
 void testMultiLongArray()
           
 void testMultiShortArray()
           
 void testNpeForNullElement()
          Test from http://issues.apache.org/bugzilla/show_bug.cgi?id=33067
 void testObject()
           
 void testObjectArray()
           
 void testObjectArrayHiddenByObject()
           
 void testRaggedArray()
           
 void testReflectionEquals()
           
 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
 void testReflectionHierarchyEquals()
           
 void testReflectionHierarchyEquals(boolean testTransients)
           
 void testShort()
           
 void testShortArray()
           
 void testShortArrayHiddenByObject()
           
 void testSuper()
           
 void testUnrelatedClasses()
          Tests two instances of classes that can be equal and that are not "related".
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

EqualsBuilderTest

public EqualsBuilderTest(java.lang.String name)
Method Detail

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