public class ExceptionMessage 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 |
|---|
ExceptionMessage(org.hamcrest.Matcher<? super String> messageMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
int |
getDescriptionPrecedence() |
protected boolean |
matchesSafely(Throwable ex) |
protected <I extends Throwable> |
matchResultSafely(I item) |
static ExceptionMessage |
message(org.hamcrest.Matcher<? super String> messageMatcher) |
static ExceptionMessage |
messageContains(Pattern pattern) |
static ExceptionMessage |
messageContains(String regex) |
static ExceptionMessage |
messageIs(String message) |
static ExceptionMessage |
messageMatches(Pattern pattern) |
static ExceptionMessage |
messageMatches(String regex) |
describeMismatchSafely, matchesSafelydescribeMismatch, matches, matches, matchResultnestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchquickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic ExceptionMessage(org.hamcrest.Matcher<? super String> messageMatcher)
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 item)
matchResultSafely in class TypesafeNestedResultMatcher<Throwable>public static ExceptionMessage messageIs(String message)
public static ExceptionMessage messageContains(String regex)
public static ExceptionMessage messageMatches(String regex)
public static ExceptionMessage messageContains(Pattern pattern)
public static ExceptionMessage messageMatches(Pattern pattern)
public static ExceptionMessage message(org.hamcrest.Matcher<? super String> messageMatcher)
Copyright © 2015. All rights reserved.