Class HamcrestToStringFilter


  • class HamcrestToStringFilter
    extends java.lang.Object
    The Class HamcrestToStringFilter.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List<java.lang.String> wordsToRemove  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.String filter​(org.hamcrest.Matcher<?> matcher)
      Filter words from the matcher.toString() so it looks nicer when printed out.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • wordsToRemove

        private static final java.util.List<java.lang.String> wordsToRemove
    • Constructor Detail

      • HamcrestToStringFilter

        HamcrestToStringFilter()
    • Method Detail

      • filter

        static java.lang.String filter​(org.hamcrest.Matcher<?> matcher)
        Filter words from the matcher.toString() so it looks nicer when printed out. E.g. "not not" is removed and "is" are removed.
        Parameters:
        matcher - the matcher
        Returns:
        A filtered version of the Matcher#toString().