Class IsEqualIgnoringLinebreakStyleMatcher

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

    public class IsEqualIgnoringLinebreakStyleMatcher
    extends org.hamcrest.TypeSafeMatcher<java.lang.String>
    Matcher which ignores \r\n differences.
    Author:
    Oliver Libutzki <[email protected]>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void describeMismatchSafely​(java.lang.String item, org.hamcrest.Description mismatchDescription)  
      void describeTo​(org.hamcrest.Description description)  
      static org.hamcrest.Matcher<java.lang.String> isEqualIgnoringLinebreakStyle​(java.lang.String expectedString)  
      boolean matchesSafely​(java.lang.String item)  
      java.lang.String stripSpace​(java.lang.String toBeStripped)  
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        describeMismatch, matches
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IsEqualIgnoringLinebreakStyleMatcher

        public IsEqualIgnoringLinebreakStyleMatcher​(java.lang.String string)
        Parameters:
        string - the string
    • Method Detail

      • matchesSafely

        public boolean matchesSafely​(java.lang.String item)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<java.lang.String>
      • describeMismatchSafely

        public void describeMismatchSafely​(java.lang.String item,
                                           org.hamcrest.Description mismatchDescription)
        Overrides:
        describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<java.lang.String>
      • describeTo

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

        public java.lang.String stripSpace​(java.lang.String toBeStripped)
        Parameters:
        toBeStripped - the string to be stripped
        Returns:
        the stripped string
      • isEqualIgnoringLinebreakStyle

        public static org.hamcrest.Matcher<java.lang.String> isEqualIgnoringLinebreakStyle​(java.lang.String expectedString)
        Parameters:
        expectedString - the expected string
        Returns:
        the matcher