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 TypeMethodDescriptionvoid
describeTo
(org.hamcrest.Description description) static org.hamcrest.Matcher<Runnable>
isThrowing
(Class<? extends Exception> expected) boolean
matchesSafely
(Runnable action) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
IsThrowingMatcher
-
-
Method Details
-
isThrowing
-
matchesSafely
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<Runnable>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-