public class CausedBy extends TypesafeNestedResultMatcher<Throwable>
NestedMatcher.NestedMatch<T,M extends org.hamcrest.Matcher<?>>, NestedMatcher.NestedMismatch<T,M extends org.hamcrest.Matcher<?>>, NestedMatcher.NestedResult<T,M extends org.hamcrest.Matcher<?>>P_AND, P_ATOMIC, P_COMPLEX, P_NONE, P_OR, P_UNARY, P_UNARY_NO_PAREN| Constructor and Description |
|---|
CausedBy(boolean direct,
org.hamcrest.Matcher<? super Throwable> m) |
| Modifier and Type | Method and Description |
|---|---|
static CausedBy |
causedBy(Class<? extends Throwable> clazz) |
static CausedBy |
causedBy(Class<? extends Throwable> clazz,
org.hamcrest.Matcher<? super Throwable> matcher) |
static CausedBy |
causedBy(Class<? extends Throwable> clazz,
String message) |
static CausedBy |
causedBy(Class<? extends Throwable> clazz,
String message,
org.hamcrest.Matcher<? super Throwable> matcher) |
static CausedBy |
causedBy(org.hamcrest.Matcher<? super Throwable> matcher) |
static CausedBy |
causedBy(String message) |
void |
describeTo(org.hamcrest.Description description) |
static CausedBy |
directlyCausedBy(Class<? extends Throwable> clazz) |
static CausedBy |
directlyCausedBy(Class<? extends Throwable> clazz,
org.hamcrest.Matcher<? super Throwable> matcher) |
static CausedBy |
directlyCausedBy(Class<? extends Throwable> clazz,
String message) |
static CausedBy |
directlyCausedBy(Class<? extends Throwable> clazz,
String message,
org.hamcrest.Matcher<? super Throwable> matcher) |
static CausedBy |
directlyCausedBy(org.hamcrest.Matcher<? super Throwable> matcher) |
int |
getDescriptionPrecedence() |
protected boolean |
matchesSafely(Throwable ex) |
protected <I extends Throwable> |
matchResultSafely(I ex) |
describeMismatchSafely, matchesSafelydescribeMismatch, matches, matches, matchResultnestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchquickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic CausedBy(boolean direct,
org.hamcrest.Matcher<? super Throwable> m)
public int getDescriptionPrecedence()
protected boolean matchesSafely(Throwable ex)
matchesSafely in class TypesafeNestedResultMatcher<Throwable>public void describeTo(org.hamcrest.Description description)
protected <I extends Throwable> MatchResult<I> matchResultSafely(I ex)
matchResultSafely in class TypesafeNestedResultMatcher<Throwable>public static CausedBy causedBy(Class<? extends Throwable> clazz, org.hamcrest.Matcher<? super Throwable> matcher)
public static CausedBy causedBy(Class<? extends Throwable> clazz, String message, org.hamcrest.Matcher<? super Throwable> matcher)
public static CausedBy directlyCausedBy(org.hamcrest.Matcher<? super Throwable> matcher)
public static CausedBy directlyCausedBy(Class<? extends Throwable> clazz, String message)
public static CausedBy directlyCausedBy(Class<? extends Throwable> clazz, org.hamcrest.Matcher<? super Throwable> matcher)
Copyright © 2015. All rights reserved.