StringExpector extension
Expectations for String.
Properties
- isBlank → void
-
Checks that the tested string is blank.
no setter
- isEmpty → void
-
Checks that the tested string is empty.
no setter
- isNotEmpty → void
-
Checks that the tested string is not empty.
no setter
Methods
-
contains(
Pattern pattern) → void -
Checks that the tested string contains the provided
pattern
. -
equalsIgnoringCase(
String other) → void -
Checks that the tested string is equals ignoring case with
other
. -
equalsIgnoringWhitespace(
String other) → void -
Checks that the tested string is equals ignoring whitespaces with
other
. -
hasLength(
int length) → void -
Checks that the tested string has the good
length
. -
startsWith(
String prefix) → void -
Checks that the tested string starts with the provided
prefix
.