Class ReplaceCollectionAssertBuilder<S,​D,​RD,​RS>

  • Type Parameters:
    S - The source type
    D - The destination type
    RS - The type of the source field
    RD - The type of the destination field

    public class ReplaceCollectionAssertBuilder<S,​D,​RD,​RS>
    extends Object
    Builder to assert a replace operation on a Mapper object using AssertConfiguration.
    Author:
    schuettec
    • Method Detail

      • withPropertyPath

        public <E extends ExceptionAssertConfiguration<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 AssertConfiguration for 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 AssertConfiguration for 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 AssertConfiguration for 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 AssertConfiguration for further configuration.