public class ThrowableMessageMatcher extends org.hamcrest.TypeSafeMatcher<Throwable>
TypeSafeMatcher for matching instances of
Throwable by considering the message of the
Throwable
For now only supports direct matches of a supplied substring within the
Throwable's message In future could be extended to support a more powerful
regular expression match| Constructor and Description |
|---|
ThrowableMessageMatcher(String substring)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(Throwable throwable) |
describeMismatch, describeMismatchSafely, matchespublic ThrowableMessageMatcher(String substring)
substring - Copyright © 2007-2019 Ikasan. All Rights Reserved.