Package de.cuioss.test.valueobjects.api
Interface ObjectContractTestSupport
- All Known Implementing Classes:
ValueObjectTest
public interface ObjectContractTestSupport
Defines the method for testing the correctness of
Object
related
tests, see shouldImplementObjectContracts()
- Author:
- Oliver Wolff
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Base test for ValueObjects verifying the correctness ofObject.equals(Object)
Object.hashCode()
,Object.toString()
andSerializable
implementations.
-
Method Details
-
shouldImplementObjectContracts
Base test for ValueObjects verifying the correctness of
Object.equals(Object)
Object.hashCode()
,Object.toString()
andSerializable
implementations.If you want to disable one of these tests you can annotate the test class with
VetoObjectTestContract
with the valueObjectTestContracts.EQUALS_AND_HASHCODE
,ObjectTestContracts.SERIALIZABLE
orObjectTestContracts.TO_STRING
-