Lines Matching full:matcher
8 import org.hamcrest.Matcher;
13 * Provides a custom description to another matcher.
17 private final Matcher<T> matcher;
22 public DescribedAs(String descriptionTemplate, Matcher<T> matcher, Object[] values) {
24 this.matcher = matcher;
29 return matcher.matches(o);
33 java.util.regex.Matcher arg = ARG_PATTERN.matcher(descriptionTemplate);
49 * Wraps an existing matcher and overrides the description when it fails.
52 public static <T> Matcher<T> describedAs(String description, Matcher<T> matcher, Object... values) {
53 return new DescribedAs<T>(description, matcher, values);