Package | Description |
---|---|
org.springframework.test.web.servlet.result |
Contains built-in
ResultMatcher and ResultHandler implementations. |
Modifier and Type | Method and Description |
---|---|
static JsonPathResultMatchers |
MockMvcResultMatchers.jsonPath(java.lang.String expression,
java.lang.Object... args)
Access to response body assertions using a
JsonPath expression
to inspect a specific subset of the body.
|
JsonPathResultMatchers |
JsonPathResultMatchers.prefix(java.lang.String prefix)
Configures the current
JsonPathResultMatchers instance
to verify that the JSON payload is prepended with the given prefix. |