Class ContractRegistry
java.lang.Object
de.cuioss.test.valueobjects.contract.ContractRegistry
Helper class handling the registration of
TestContract
s- Author:
- Oliver Wolff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<TestContract<T>>
resolveTestContracts
(Class<T> targetBeanClass, Class<?> unitTestClass, List<PropertyMetadata> propertyMetadata) Resolves the concreteTestContract
s to be tested.
-
Constructor Details
-
ContractRegistry
public ContractRegistry()
-
-
Method Details
-
resolveTestContracts
public static <T> List<TestContract<T>> resolveTestContracts(Class<T> targetBeanClass, Class<?> unitTestClass, List<PropertyMetadata> propertyMetadata) Resolves the concreteTestContract
s to be tested. They are derived by the corresponding annotations- Parameters:
targetBeanClass
- The actual class underTestunitTestClass
- The test-classpropertyMetadata
-- Returns:
- a list of configured
TestContract
s
-