Package be.gaudry.model.test
Class GenericLightObjectTest<T extends ILightObject>
java.lang.Object
be.gaudry.model.test.GenericLightObjectTest<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
AbstractPersonTest
,LightObjectTest
,PersonExtTest
- Since:
- 1.0 Feb 18, 2010, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
protected abstract T
createObject(int id, String display)
protected T
createObject(String display)
void
setUp()
void
tearDown()
void
Test method forAbstractLightObject.equals(java.lang.Object)
.void
Test method forAbstractLightObject.hashCode()
.void
Test HashCode collisions.
-
Constructor Details
-
GenericLightObjectTest
-
-
Method Details
-
createObject
-
createObject
-
createObject
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testHashCode
public final void testHashCode()Test method forAbstractLightObject.hashCode()
. -
testHashCodeCollisions
public final void testHashCodeCollisions()Test HashCode collisions. 2 Strings may produce same hashcodes, thus this tests if there is a hight cohesion between hashcode and equals methods for the light object. -
testEqualsObject
public final void testEqualsObject()Test method forAbstractLightObject.equals(java.lang.Object)
.
-