spring-framework / org.springframework.test.web.servlet.result / JsonPathResultMatchers / isNotEmpty

isNotEmpty

open fun isNotEmpty(): ResultMatcher

Evaluate the JSON path expression against the response content and assert that a non-empty value exists at the given path.

For the semantics of empty, consult the Javadoc for org.springframework.util.ObjectUtils#isEmpty(Object).

Since
4.2.1

See Also
#isEmpty()#exists()#doesNotExist()