T - Type of the throwablepublic class MessageMatcher<T extends Throwable> extends TypeSafeDiagnosingMatcher<T>
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(Description description) |
protected boolean |
matchesSafely(T throwable,
Description mismatchDescription) |
static <T extends Throwable> |
message(Matcher<String> messageMatcher)
Create a matcher for a throwable message.
|
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toStringpublic static <T extends Throwable> Matcher<T> message(Matcher<String> messageMatcher)
T - Type of the throwablemessageMatcher - Matcher for the messageprotected boolean matchesSafely(T throwable, Description mismatchDescription)
matchesSafely in class TypeSafeDiagnosingMatcher<T extends Throwable>public void describeTo(Description description)
Copyright © 2022. All rights reserved.