<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::everyItem(MunitTools::notNullValue())]"/>
Iterable and Map Matchers Reference
everyItem(Matcher)
Checks that every element in the expression matches the specified matcher.
Example
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::everyItem(MunitTools::startsWith('a'))]"/>
hasItem(Matcher)
Checks that any element in the expression matches the specified matcher.
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::hasItem(MunitTools::notNullValue())]"/>
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::hasItem(MunitTools::startsWith('a'))]"/>
hasSize(Matcher)
Checks that the size of the expression matches the specified matcher.
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::hasSize(MunitTools::equalTo(5))]"/>
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::hasSize(MunitTools::greaterThan(2))]"/>
isEmpty()
Checks that the expression is an empty collection.
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::isEmpty()]"/>
hasKey(Matcher)
Checks that the expression has a key that matches the specified matcher.
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::hasKey(MunitTools::equalTo('myKey'))]"/>
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::hasKey(MunitTools::startsWith('a'))]"/>
hasValue(Matcher)
Checks that the expression has a value that matches the specified matcher.
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::hasValue(MunitTools::equalTo('myValue'))]"/>
Example
<munit-tools:assert-that
expression="#[payload]"
is="#[MunitTools::hasValue(MunitTools::startsWith('a'))]"/>