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

public class ExceptionMatcher extends org.hamcrest.BaseMatcher<Throwable>
  • Field Details

    • prefix

      @NotNull private final @NotNull String prefix
    • pattern

      @NotNull private final @NotNull Pattern pattern
    • message

      @NotNull private final @NotNull String message
  • Constructor Details

    • ExceptionMatcher

      public ExceptionMatcher(@NotNull @NotNull Class<? extends Throwable> throwable, @NotNull @NotNull Pattern pattern, @NotNull @NotNull String message)
  • Method Details

    • matches

      public boolean matches(Object o)
    • 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)