Interface ComparisonRuleBuilder.ChooseMatcher

  • All Superinterfaces:
    de.skuzzle.test.snapshots.ComparisonRuleBuilder.ChooseMatcher
    Enclosing interface:
    ComparisonRuleBuilder

    @Deprecated(forRemoval=true,
                since="1.3.0")
    @API(status=DEPRECATED,
         since="1.3.0")
    public static interface ComparisonRuleBuilder.ChooseMatcher
    extends de.skuzzle.test.snapshots.ComparisonRuleBuilder.ChooseMatcher
    Deprecated, for removal: This API element is subject to removal in a future version.
    Since 1.3.0 - Use ComparisonRuleBuilder.ChooseMatcher from core package instead.
    Allows to choose the comparison for the value.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      ComparisonRuleBuilder ignore()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Ignores values during comparison.
      ComparisonRuleBuilder mustMatch​(java.util.function.Predicate<? super java.lang.Object> predicate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The value must match the given predicate.
      ComparisonRuleBuilder mustMatch​(java.util.regex.Pattern regex)
      Deprecated, for removal: This API element is subject to removal in a future version.
      String representation of the value must match the given regex.
    • Method Detail

      • ignore

        ComparisonRuleBuilder ignore()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Ignores values during comparison.
        Specified by:
        ignore in interface de.skuzzle.test.snapshots.ComparisonRuleBuilder.ChooseMatcher
        Returns:
        DSL object for specifying further rules.
      • mustMatch

        ComparisonRuleBuilder mustMatch​(java.util.regex.Pattern regex)
        Deprecated, for removal: This API element is subject to removal in a future version.
        String representation of the value must match the given regex.
        Specified by:
        mustMatch in interface de.skuzzle.test.snapshots.ComparisonRuleBuilder.ChooseMatcher
        Parameters:
        regex - The regex.
        Returns:
        DSL object for specifying further rules.
      • mustMatch

        ComparisonRuleBuilder mustMatch​(java.util.function.Predicate<? super java.lang.Object> predicate)
        Deprecated, for removal: This API element is subject to removal in a future version.
        The value must match the given predicate.
        Specified by:
        mustMatch in interface de.skuzzle.test.snapshots.ComparisonRuleBuilder.ChooseMatcher
        Parameters:
        predicate - The predicate.
        Returns:
        DSL object for specifying further rules.