public interface ResultHandler
See static factory methods in
org.springframework.test.web.server.result.MockMvcResultHandlers
.
Example:
static imports: MockMvcRequestBuilders.*, MockMvcResultHandlers.* mockMvc.perform(get("/form")).andDo(print());
Modifier and Type | Method and Description |
---|---|
void |
handle(MvcResult result)
Apply the action on the given result.
|
void handle(MvcResult result) throws java.lang.Exception
result
- the result of the executed requestjava.lang.Exception
- if a failure occurs