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

      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

      Returns:
      boolean indicating whether to only use the default checks ignoring any properties, defaults to false
      Default:
      false
    • serializableCompareUsingEquals

      Returns:
      boolean indicating whether the serialized and de-serialized object should be compared using Object.equals(Object) with the original object defaults to true
      Default:
      true
    • toStringUseMinimalInstance

      Returns:
      boolean indicating whether during the ObjectTestContracts.TO_STRING minimal objects should be used regarding the properties defaults to false
      Default:
      false