Class ReflectionUtil
java.lang.Object
de.cuioss.test.valueobjects.contract.ReflectionUtil
Simple Helper for reflection-api. Like many other methods of this
test-framework, the methods use rather asserts /
AssertionError
to
check preconditions and states than Exception
- Author:
- Oliver Wolff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertEqualsMethodIsOverriden
(Class<?> clazz) Verify the class implementsObject.equals(Object)
static void
assertHashCodeMethodIsOverriden
(Class<?> clazz) Verify the class implementsObject.hashCode()
static void
assertToStringMethodIsOverriden
(Class<?> clazz) Verify the class implementsObject.hashCode()
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
assertEqualsMethodIsOverriden
Verify the class implementsObject.equals(Object)
- Parameters:
clazz
- class to be checked, msut not be null
-
assertHashCodeMethodIsOverriden
Verify the class implementsObject.hashCode()
- Parameters:
clazz
- class to be checked, must not be null
-
assertToStringMethodIsOverriden
Verify the class implementsObject.hashCode()
- Parameters:
clazz
- class to be checked, must not be null
-