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) |
static <T,U> org.hamcrest.Matcher<T> |
withTransformed(org.hamcrest.Matcher<U> valueMatcher,
com.google.common.base.Function<T,U> transformer) |
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)
public static org.hamcrest.Matcher<org.junit.runners.model.InitializationError> withCauses(org.hamcrest.Matcher<Iterable<Throwable>> causesMatcher)
public static <T,U> org.hamcrest.Matcher<T> withTransformed(org.hamcrest.Matcher<U> valueMatcher, com.google.common.base.Function<T,U> transformer)
Copyright © 2002-2019 Atlassian. All Rights Reserved.