Class IsThrowingMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<Runnable>
ee.jakarta.tck.ws.rs.common.matchers.IsThrowingMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<Runnable>,org.hamcrest.SelfDescribing
Custom Hamcrest Matcher to assert if the given exception is thrown.
- Author:
- Jeremias Weber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) static org.hamcrest.Matcher<Runnable>isThrowing(Class<? extends Exception> expected) booleanmatchesSafely(Runnable action) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
IsThrowingMatcher
-
-
Method Details
-
isThrowing
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<Runnable>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-