接口的使用
org.springframework.test.web.servlet.ResultActions
使用ResultActions的程序包 程序包 说明 org.springframework.test.web.servlet Contains server-side support for testing Spring MVC applications.org.springframework.test.web.servlet中ResultActions的使用
返回ResultActions的org.springframework.test.web.servlet中的方法 修饰符和类型 方法 说明 ResultActions
ResultActions. andDo(ResultHandler handler)
Perform a general action.ResultActions
ResultActions. andExpect(ResultMatcher matcher)
Perform an expectation.ResultActions
MockMvc. perform(RequestBuilder requestBuilder)
Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result.