public interface ResultMatcher
See static factory methods in
org.springframework.test.web.server.result.MockMvcResultMatchers.
Example:
static imports: MockMvcRequestBuilders.*, MockMvcResultMatchers.*
mockMvc.perform(get("/form"))
.andExpect(status.isOk())
.andExpect(content().mimeType(MediaType.APPLICATION_JSON));
| Modifier and Type | Method and Description |
|---|---|
void |
match(MvcResult result)
Assert the result of an executed request.
|
void match(MvcResult result) throws java.lang.Exception
result - the result of the executed requestjava.lang.Exception - if a failure occurs