Package com.vladsch.flexmark.test.util
Class ExceptionMatcher
java.lang.Object
org.hamcrest.BaseMatcher<Throwable>
com.vladsch.flexmark.test.util.ExceptionMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<Throwable>
,org.hamcrest.SelfDescribing
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExceptionMatcher
(@NotNull Class<? extends Throwable> throwable, @NotNull Pattern pattern, @NotNull String message) -
Method Summary
Modifier and TypeMethodDescriptionvoid
describeTo
(org.hamcrest.Description description) static @NotNull ExceptionMatcher
boolean
static @NotNull ExceptionMatcher
matchPrefix
(@NotNull Class<? extends Throwable> throwable, @NotNull String text) static @NotNull ExceptionMatcher
matchRegEx
(@NotNull Class<? extends Throwable> throwable, @NotNull String regEx) Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
-
Field Details
-
prefix
-
pattern
-
message
-
-
Constructor Details
-
ExceptionMatcher
-
-
Method Details
-
matches
-
describeTo
public void describeTo(org.hamcrest.Description description) -
match
@NotNull public static @NotNull ExceptionMatcher match(@NotNull @NotNull Class<? extends Throwable> throwable, @NotNull @NotNull String text) -
matchPrefix
@NotNull public static @NotNull ExceptionMatcher matchPrefix(@NotNull @NotNull Class<? extends Throwable> throwable, @NotNull @NotNull String text) -
matchRegEx
@NotNull public static @NotNull ExceptionMatcher matchRegEx(@NotNull @NotNull Class<? extends Throwable> throwable, @NotNull @NotNull String regEx)
-