public class JsonPathResultMatchers
extends java.lang.Object
MockMvcResultMatchers.jsonPath(java.lang.String, java.lang.Object...)
.Modifier and Type | Field and Description |
---|---|
private JsonPathExpectationsHelper |
jsonPathHelper |
Modifier | Constructor and Description |
---|---|
protected |
JsonPathResultMatchers(java.lang.String expression,
java.lang.Object... args)
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
ResultMatcher |
doesNotExist()
Evaluate the JSON path and assert not content was found.
|
ResultMatcher |
exists()
Evaluate the JSONPath and assert that content exists.
|
ResultMatcher |
isArray()
Evluate the JSON path and assert the content found is an array.
|
<T> ResultMatcher |
value(<any> matcher)
Evaluate the JSONPath and assert the value of the content found with the
given Hamcrest
Matcher . |
ResultMatcher |
value(java.lang.Object expectedValue)
Evaluate the JSONPath and assert the value of the content found.
|
private final JsonPathExpectationsHelper jsonPathHelper
protected JsonPathResultMatchers(java.lang.String expression, java.lang.Object... args)
MockMvcResultMatchers.jsonPath(String, Object...)
or
MockMvcResultMatchers#jsonPath(String, Matcher)
.public <T> ResultMatcher value(<any> matcher)
Matcher
.public ResultMatcher value(java.lang.Object expectedValue)
public ResultMatcher exists()
public ResultMatcher doesNotExist()
public ResultMatcher isArray()