StringExpectation<Return> extension

Matchers for Strings

on

Methods

equalsIgnoringCase(String value) → Return
Returns a matcher which matches if the match argument is a string and is equal to value when compared case-insensitively.
equalsIgnoringWhitespace(String value) → Return
Returns a matcher which matches if the match argument is a string and is equal to value, ignoring whitespace.
startsWith(String prefixString) → Return
Returns a matcher that matches if the match argument is a string and starts with prefixString.
stringContainsInOrder(List<String> substrings) → Return
Returns a matcher that matches if the match argument is a string and contains a given list of substrings in relative order.