Annotation Interface ObjectTestConfig
Simple annotation for extended configuration of
ObjectTestContract
.
Usually not needed. Used for corner cases.- Author:
- Oliver Wolff
-
Element Details
-
equalsAndHashCodeExclude
- Returns:
- an array of properties, identified by their names that are not to be considered for equalsAndHashcode-tests: Blacklist
- Default:
- {}
-
equalsAndHashCodeOf
- Returns:
- an array of properties, identified by their names that are to be
considered for equalsAndHashcode-tests: Whitelist: takes precedence
over
equalsAndHashCodeExclude()
- Default:
- {}
-
equalsAndHashCodeBasicOnly
boolean equalsAndHashCodeBasicOnly- Returns:
- boolean indicating whether to only use the default checks ignoring
any properties, defaults to
false
- Default:
- false
-
serializableExclude
- Returns:
- an array of properties, identified by their names that are not to be considered for serializable-tests: Blacklist
- Default:
- {}
-
serializableOf
- Returns:
- an array of properties, identified by their names that are to be
considered for equalsAndHashcode-tests: Whitelist: takes precedence
over
serializableExclude()
- Default:
- {}
-
serializableBasicOnly
boolean serializableBasicOnly- Returns:
- boolean indicating whether to only use the default checks ignoring
any properties, defaults to
false
- Default:
- false
-
serializableCompareUsingEquals
boolean serializableCompareUsingEquals- Returns:
- boolean indicating whether the serialized and de-serialized object
should be compared using
Object.equals(Object)
with the original object defaults totrue
- Default:
- true
-
toStringUseMinimalInstance
boolean toStringUseMinimalInstance- Returns:
- boolean indicating whether during the
ObjectTestContracts.TO_STRING
minimal objects should be used regarding the properties defaults tofalse
- Default:
- false
-