public final class HasCause<T extends Throwable>
extends org.hamcrest.TypeSafeMatcher<T>
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static <T extends Throwable> |
hasCause(Class<? extends Throwable> cause) |
static <T extends Throwable,C extends Throwable> |
hasCause(org.hamcrest.Matcher<C> causeMatcher) |
protected boolean |
matchesSafely(T item) |
describeMismatch, describeMismatchSafely, matchespublic static <T extends Throwable,C extends Throwable> org.hamcrest.Matcher<T> hasCause(org.hamcrest.Matcher<C> causeMatcher)
public static <T extends Throwable> org.hamcrest.Matcher<T> hasCause(Class<? extends Throwable> cause)
public void describeTo(org.hamcrest.Description description)
Copyright © 2013–2015. All rights reserved.