Module com.remondis.remap
Package com.remondis.remap
Class ReplaceCollectionAssertBuilder<S,D,RD,RS>
- java.lang.Object
-
- com.remondis.remap.ReplaceCollectionAssertBuilder<S,D,RD,RS>
-
- Type Parameters:
S- The source typeD- The destination typeRS- The type of the source fieldRD- The type of the destination field
public class ReplaceCollectionAssertBuilder<S,D,RD,RS> extends Object
Builder to assert a replace operation on aMapperobject usingAssertConfiguration.- Author:
- schuettec
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertConfiguration<S,D>andSkipWhenNull()Specifies the transform operation to be skipped when null.AssertConfiguration<S,D>andTest(Function<RS,RD> transformation)Specifies the transformation function that will be checked against null input.<E extends Exception>
AssertConfiguration<S,D>withPropertyPath(com.remondis.propertypath.api.PropertyPath<RD,RS,E> propertyPath)Expects the mapping to evaluate the exact property path that was specified.AssertConfiguration<S,D>withPropertyPathAndTransformation(com.remondis.propertypath.api.PropertyPath<?,RS,?> propertyPath)Expects the mapping to evaluate the exact property path that was specified.
-
-
-
Method Detail
-
withPropertyPath
public <E extends Exception> AssertConfiguration<S,D> withPropertyPath(com.remondis.propertypath.api.PropertyPath<RD,RS,E> propertyPath)
Expects the mapping to evaluate the exact property path that was specified.- Parameters:
propertyPath- The expected property path.- Returns:
- Returns the
AssertConfigurationfor further configuration.
-
withPropertyPathAndTransformation
public AssertConfiguration<S,D> withPropertyPathAndTransformation(com.remondis.propertypath.api.PropertyPath<?,RS,?> propertyPath)
Expects the mapping to evaluate the exact property path that was specified.- Parameters:
propertyPath- The expected property path.- Returns:
- Returns the
AssertConfigurationfor further configuration.
-
andTest
public AssertConfiguration<S,D> andTest(Function<RS,RD> transformation)
Specifies the transformation function that will be checked against null input.- Parameters:
transformation- The transformation to test.- Returns:
- Returns the
AssertConfigurationfor further configuration.
-
andSkipWhenNull
public AssertConfiguration<S,D> andSkipWhenNull()
Specifies the transform operation to be skipped when null. In this case the transformation function will not be tested. In a future release this method may allow to test the transformation function.- Returns:
- Returns the
AssertConfigurationfor further configuration.
-
-