Lines Matching refs:matcher
65 * Adds {@code matcher} to the list of requirements for any thrown exception.
69 public void expect(Matcher<?> matcher) {
71 fMatcher= (Matcher<Object>) matcher;
73 fMatcher= both(fMatcher).and(matcher);
93 * Adds {@code matcher} to the list of requirements for the message
96 public void expectMessage(Matcher<String> matcher) {
97 expect(hasMessage(matcher));
123 private Matcher<Throwable> hasMessage(final Matcher<String> matcher) {
127 description.appendDescriptionOf(matcher);
132 return matcher.matches(item.getMessage());