T - an throwable subclasspublic class ThrowableMessageMatcher<T extends Throwable> extends org.hamcrest.BaseMatcher<T>
matcher that matches an throwable with a certain
message.| Modifier and Type | Field and Description |
|---|---|
private org.hamcrest.Matcher<String> |
expectedMessageMatcher
The string matcher that shall match throwable message.
|
| Constructor and Description |
|---|
ThrowableMessageMatcher(org.hamcrest.Matcher<String> expectedMessageMatcher) |
ThrowableMessageMatcher(String expectedMessage) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matches(Object obj) |
private org.hamcrest.Matcher<String> expectedMessageMatcher
public ThrowableMessageMatcher(String expectedMessage)
expectedMessage - the expected throwable messagepublic ThrowableMessageMatcher(org.hamcrest.Matcher<String> expectedMessageMatcher)
expectedMessageMatcher - a string matcher that shall match the throwable messagepublic void describeTo(org.hamcrest.Description description)
Copyright © 2014. All rights reserved.