Class RegexpMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<String>, org.hamcrest.SelfDescribing

    public class RegexpMatcher
    extends org.hamcrest.TypeSafeMatcher<String>
    • Method Detail

      • matchesSafely

        protected boolean matchesSafely​(@NotNull
                                        @NotNull String item)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<String>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
      • matches

        public static org.hamcrest.Matcher<String> matches​(Pattern pattern)
      • matches

        public static org.hamcrest.Matcher<String> matches​(String regex)