Class ToStringContractImpl
java.lang.Object
de.cuioss.test.valueobjects.contract.ToStringContractImpl
- All Implemented Interfaces:
ObjectTestContract
Checks whether the object in hand implements
Object.toString()
and
calls it will fully populated object.- Author:
- Oliver Wolff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertContract
(ParameterizedInstantiator<?> instantiator, ObjectTestConfig objectTestConfig) Checks the concrete contract.
-
Constructor Details
-
ToStringContractImpl
public ToStringContractImpl()
-
-
Method Details
-
assertContract
public void assertContract(ParameterizedInstantiator<?> instantiator, ObjectTestConfig objectTestConfig) Description copied from interface:ObjectTestContract
Checks the concrete contract.- Specified by:
assertContract
in interfaceObjectTestContract
- Parameters:
instantiator
- must not be null. The actual type of theObject
is not of interest, because we checkObject
contractsobjectTestConfig
- optional configuration configuring the tests
-