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(String expression,
Object... args)
Access to response body assertions using a
JsonPath expression
to inspect a specific subset of the body.
|
JsonPathResultMatchers |
JsonPathResultMatchers.prefix(String prefix)
Configures the current
JsonPathResultMatchers instance
to verify that the JSON payload is prepended with the given prefix. |