Class HamcrestToStringFilter

java.lang.Object
org.awaitility.core.HamcrestToStringFilter

class HamcrestToStringFilter extends Object
The Class HamcrestToStringFilter.
  • Field Details

    • wordsToRemove

      private static final List<String> wordsToRemove
  • Constructor Details

    • HamcrestToStringFilter

      HamcrestToStringFilter()
  • Method Details

    • filter

      static 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().