public class StacktracePrintingMatcher<T extends 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 Exception> |
isException(org.hamcrest.Matcher<T> exceptionMatcher) |
static <T extends 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)
protected void describeMismatchSafely(T item, org.hamcrest.Description description)
public static <T extends Throwable> org.hamcrest.Matcher<T> isThrowable(org.hamcrest.Matcher<T> throwableMatcher)
public static <T extends Exception> org.hamcrest.Matcher<T> isException(org.hamcrest.Matcher<T> exceptionMatcher)
Copyright © 2002–2021 JUnit. All rights reserved.