public class ExceptionMessage extends TypesafeQuickDiagnoseMatcherBase<Throwable>
| Constructor and Description |
|---|
ExceptionMessage(org.hamcrest.Matcher<? super String> messageMatcher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(Throwable item,
org.hamcrest.Description mismatch) |
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(Throwable ex) |
protected boolean |
matchesSafely(Throwable ex,
org.hamcrest.Description mismatch) |
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) |
describeMismatch, matches, matchesquickMatch, quickMatch_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic ExceptionMessage(org.hamcrest.Matcher<? super String> messageMatcher)
protected boolean matchesSafely(Throwable ex)
matchesSafely in class TypesafeQuickDiagnoseMatcherBase<Throwable>protected boolean matchesSafely(Throwable ex, org.hamcrest.Description mismatch)
matchesSafely in class TypesafeQuickDiagnoseMatcherBase<Throwable>protected void describeMismatchSafely(Throwable item, org.hamcrest.Description mismatch)
describeMismatchSafely in class TypesafeQuickDiagnoseMatcherBase<Throwable>public void describeTo(org.hamcrest.Description description)
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 © 2013. All Rights Reserved.