public interface ResultHandler
See static factory methods in
org.springframework.engine.web.server.result.MockMvcResultHandlers.
Example:
static imports: MockMvcRequestBuilders.*, MockMvcResultHandlers.*
mockMvc.perform(get("/form")).andDo(print());
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handle(HttpResult result)
Apply the action on the given result.
|
void handle(HttpResult result) throws Exception
result - the result of the executed requestException - if a failure occursCopyright © 2016. All rights reserved.