Class GenericLightObjectTest<T extends ILightObject>

java.lang.Object
be.gaudry.model.test.GenericLightObjectTest<T>
Type Parameters:
T -
Direct Known Subclasses:
AbstractPersonTest, LightObjectTest, PersonExtTest

public abstract class GenericLightObjectTest<T extends ILightObject> extends Object
Since:
1.0 Feb 18, 2010, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
  • Constructor Details

    • GenericLightObjectTest

      public GenericLightObjectTest(Class<T> clazz)
  • Method Details

    • createObject

      protected abstract T createObject(int id, String display)
    • createObject

      protected T createObject(String display)
    • createObject

      protected abstract T createObject()
    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Throws:
      Exception
    • testHashCode

      public final void testHashCode()
    • 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()