Class MapperAttributesAsserts
java.lang.Object
de.cuioss.test.valueobjects.contract.support.MapperAttributesAsserts
Helper class for asserting single-attribute mappings for
VerifyMapperConfiguration
- Author:
- Oliver Wolff
-
Constructor Summary
ConstructorsConstructorDescriptionMapperAttributesAsserts
(VerifyMapperConfiguration config, RuntimeProperties targetProperties, RuntimeProperties sourceProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertMappingForSourceAttributes
(Collection<String> sourceAttributes, Object source, Object target)
-
Constructor Details
-
MapperAttributesAsserts
public MapperAttributesAsserts(VerifyMapperConfiguration config, RuntimeProperties targetProperties, RuntimeProperties sourceProperties) - Parameters:
config
-targetProperties
-sourceProperties
-
-
-
Method Details
-
assertMappingForSourceAttributes
public void assertMappingForSourceAttributes(Collection<String> sourceAttributes, Object source, Object target) - Parameters:
sourceAttributes
- to be testedsource
-target
-
-