Class RegexMatcher

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

    public class RegexMatcher
    extends org.hamcrest.TypeSafeMatcher<String>
    A Hamcrest Matcher which catches Strings that match a given regex.
    Since:
    5.2
    • Method Detail

      • matchesSafely

        public boolean matchesSafely​(String string)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<String>
      • describeTo

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