T - Type of the throwablepublic class CauseMatcher<T extends Throwable> extends TypeSafeDiagnosingMatcher<T>
| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
cause(Matcher<Object> causeMatcher)
Create a matcher for a throwable cause.
|
void |
describeTo(Description description) |
protected boolean |
matchesSafely(T throwable,
Description mismatchDescription) |
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toStringpublic static <T extends Throwable> Matcher<T> cause(Matcher<Object> causeMatcher)
T - Type of the throwablecauseMatcher - Matcher for the causeprotected boolean matchesSafely(T throwable, Description mismatchDescription)
matchesSafely in class TypeSafeDiagnosingMatcher<T extends Throwable>public void describeTo(Description description)
Copyright © 2022. All rights reserved.