Package org.apache.hadoop.hbase.io.hfile
Class TestHFileBlockHeaderCorruption.IsThrowableMatching
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<Throwable>
org.apache.hadoop.hbase.io.hfile.TestHFileBlockHeaderCorruption.IsThrowableMatching
- All Implemented Interfaces:
org.hamcrest.Matcher<Throwable>
,org.hamcrest.SelfDescribing
- Enclosing class:
- TestHFileBlockHeaderCorruption
private static final class TestHFileBlockHeaderCorruption.IsThrowableMatching
extends org.hamcrest.TypeSafeMatcher<Throwable>
A Matcher implementation that can make basic assertions over a provided
Throwable
.
Assertion failures include the full stacktrace in their description.-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
describeMismatchSafely
(Throwable item, org.hamcrest.Description mismatchDescription) void
describeTo
(org.hamcrest.Description description) protected boolean
matchesSafely
(Throwable throwable) withInstanceOf
(Class<?> type) withMessage
(org.hamcrest.Matcher<String> matcher) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
-
Field Details
-
requirements
-
-
Constructor Details
-
IsThrowableMatching
private IsThrowableMatching()
-
-
Method Details
-
withInstanceOf
-
withMessage
public TestHFileBlockHeaderCorruption.IsThrowableMatching withMessage(org.hamcrest.Matcher<String> matcher) -
matchesSafely
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<Throwable>
-
describeMismatchSafely
- Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<Throwable>
-
describeTo
-