<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::containsString('example')]"/>
String Matchers Reference
containsString(String)
Checks that the expression contains the specified String.
startsWith(String)
Checks that the expression starts with the specified String.
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::startsWith('exam')]"/>
endsWith(String)
Checks that the expression ends with the specified String.
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::endsWith('ple')]"/>
isEmptyString()
Checks that the expression has zero length.
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::isEmptyString()]"/>
isEmptyOrNullString()
Checks that the expression is null, or has zero length.
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::isEmptyOrNullString()]"/>
equalToIgnoringCase(String)
Checks that the expression is equal to the specified String, ignoring case.
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::equalToIgnoringCase('example')]"/>
equalToIgnoringWhiteSpace(String)
Checks that the expression is equal to the string disregarding leading and trailing white spaces, and compression all inner white spaces to a single space.
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::equalToIgnoringWhiteSpace('An Example')]"/>