public class ThrowableMessageMatcher<T extends Throwable>
extends org.hamcrest.TypeSafeMatcher<T>
TypeSafeMatcher for the content of a Throwable.getMessage().
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(T t) |
static <T extends Throwable> |
message(org.hamcrest.Matcher<? super String> matcher)
|
describeMismatch, describeMismatchSafely, matchespublic static <T extends Throwable> ThrowableMessageMatcher<T> message(org.hamcrest.Matcher<? super String> matcher)
T - the type of Throwablematcher - the message MatcherThrowableMessageMatcherprotected boolean matchesSafely(T t)
public void describeTo(org.hamcrest.Description description)
Copyright © 2017. All rights reserved.