public class StacktracePrintingMatcher<T extends java.lang.Throwable>
extends org.hamcrest.TypeSafeMatcher<T>
Constructor and Description |
---|
StacktracePrintingMatcher(org.hamcrest.Matcher<T> throwableMatcher) |
Modifier and Type | Method and Description |
---|---|
protected void |
describeMismatchSafely(T item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
static <T extends java.lang.Exception> |
isException(org.hamcrest.Matcher<T> exceptionMatcher) |
static <T extends java.lang.Throwable> |
isThrowable(org.hamcrest.Matcher<T> throwableMatcher) |
protected boolean |
matchesSafely(T item) |
public StacktracePrintingMatcher(org.hamcrest.Matcher<T> throwableMatcher)
public void describeTo(org.hamcrest.Description description)
protected boolean matchesSafely(T item)
matchesSafely
in class org.hamcrest.TypeSafeMatcher<T extends java.lang.Throwable>
protected void describeMismatchSafely(T item, org.hamcrest.Description description)
describeMismatchSafely
in class org.hamcrest.TypeSafeMatcher<T extends java.lang.Throwable>
public static <T extends java.lang.Throwable> org.hamcrest.Matcher<T> isThrowable(org.hamcrest.Matcher<T> throwableMatcher)
public static <T extends java.lang.Exception> org.hamcrest.Matcher<T> isException(org.hamcrest.Matcher<T> exceptionMatcher)