Package de.skuzzle.test.snapshots
Interface ComparisonRuleBuilder.ChooseMatcher
-
- Enclosing interface:
- ComparisonRuleBuilder
@API(status=EXPERIMENTAL, since="1.3.0") public static interface ComparisonRuleBuilder.ChooseMatcherAllows to choose the comparison for the value.- Author:
- Simon Taddiken
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComparisonRuleBuilderignore()Ignores values during comparison.ComparisonRuleBuildermustMatch(Predicate<? super Object> predicate)The value must match the given predicate.ComparisonRuleBuildermustMatch(Pattern regex)String representation of the value must match the given regex.
-
-
-
Method Detail
-
ignore
ComparisonRuleBuilder ignore()
Ignores values during comparison.- Returns:
- DSL object for specifying further rules.
-
mustMatch
ComparisonRuleBuilder mustMatch(Pattern regex)
String representation of the value must match the given regex.- Parameters:
regex- The regex.- Returns:
- DSL object for specifying further rules.
-
mustMatch
ComparisonRuleBuilder mustMatch(Predicate<? super Object> predicate)
The value must match the given predicate.The values which will be passed to the given predicate are highly provider specific. Consult the documentation of your
StructuredDataProviderimplementation.- Parameters:
predicate- The predicate.- Returns:
- DSL object for specifying further rules.
-
-