Class StringMatcher

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

    public class StringMatcher
    extends org.hamcrest.TypeSafeMatcher<String>
    • Constructor Detail

      • StringMatcher

        public StringMatcher​(String value)
    • Method Detail

      • describeTo

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

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

        public static org.hamcrest.Matcher<String> stringMatches​(String item)
      • stringMatches

        public static org.hamcrest.Matcher<String> stringMatches​(Object item)
      • stringsMatch

        public static boolean stringsMatch​(Object item1,
                                           Object item2)