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

doesNotExist

open fun doesNotExist(): ResultMatcher

Evaluate the JSON path expression against the response content and assert that a value does not exist at the given path.

If the JSON path expression is not definite, this method asserts that the value at the given path is empty.