Class ThrowableMessageMatcher<T extends Throwable>
java.lang.Object
org.hamcrest.BaseMatcher<T>
com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher<T>
- Type Parameters:
T
- an throwable subclass
- All Implemented Interfaces:
org.hamcrest.Matcher<T>
,org.hamcrest.SelfDescribing
Creates a
matcher
that matches an throwable with a certain message.-
Constructor Summary
ConstructorsConstructorDescriptionThrowableMessageMatcher
(String expectedMessage) Instantiates a new throwable message matcher.ThrowableMessageMatcher
(org.hamcrest.Matcher<String> expectedMessageMatcher) Instantiates a new throwable message matcher. -
Method Summary
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
-
Constructor Details
-
ThrowableMessageMatcher
Instantiates a new throwable message matcher.- Parameters:
expectedMessage
- the expected throwable message
-
ThrowableMessageMatcher
Instantiates a new throwable message matcher.- Parameters:
expectedMessageMatcher
- a string matcher that shall match the throwable message
-
-
Method Details
-
matches
-
describeTo
public void describeTo(org.hamcrest.Description description)
-