public final class ErrorMatchers extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
specificError(Class<T> errorClass,
org.hamcrest.Matcher<T> specificMatcher) |
static org.hamcrest.Matcher<Throwable> |
withCause(Class<? extends Throwable> causeType) |
static org.hamcrest.Matcher<Throwable> |
withCause(org.hamcrest.Matcher<? extends Throwable> causeMatcher) |
static org.hamcrest.Matcher<org.junit.runners.model.InitializationError> |
withCauses(org.hamcrest.Matcher<Iterable<Throwable>> causesMatcher) |
static org.hamcrest.Matcher<Throwable> |
withMessage(org.hamcrest.Matcher<String> messageMatcher) |
static org.hamcrest.Matcher<Throwable> |
withMessage(String... expectedSubstrings) |
public static org.hamcrest.Matcher<Throwable> withMessage(org.hamcrest.Matcher<String> messageMatcher)
public static org.hamcrest.Matcher<Throwable> withCause(Class<? extends Throwable> causeType)
public static org.hamcrest.Matcher<Throwable> withCause(org.hamcrest.Matcher<? extends Throwable> causeMatcher)
public static <T extends Throwable> org.hamcrest.Matcher<Throwable> specificError(Class<T> errorClass, org.hamcrest.Matcher<T> specificMatcher)
Copyright © 2002-2021 Atlassian. All Rights Reserved.