T - the type of the throwable being matchedpublic class ThrowableCauseMatcher<T extends java.lang.Throwable> extends TypeSafeMatcher<T>
| Constructor and Description |
|---|
ThrowableCauseMatcher(<any> causeMatcher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(T item,
Description description) |
void |
describeTo(Description description) |
static <T extends java.lang.Throwable> |
hasCause(<any> matcher)
Returns a matcher that verifies that the outer exception has a cause for which the supplied matcher
evaluates to true.
|
protected boolean |
matchesSafely(T item)
Subclasses should implement this.
|
matchespublic void describeTo(Description description)
protected boolean matchesSafely(T item)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<T extends java.lang.Throwable>protected void describeMismatchSafely(T item, Description description)
public static <T extends java.lang.Throwable> <any> hasCause(<any> matcher)
T - type of the outer exceptionmatcher - to apply to the cause of the outer exceptionCopyright (c) OSGi Alliance (2014, 2020). All Rights Reserved.