接口的使用
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中的方法 修饰符和类型 方法 说明 ResultActionsResultActions. andDo(ResultHandler handler)Perform a general action.ResultActionsResultActions. andExpect(ResultMatcher matcher)Perform an expectation.ResultActionsMockMvc. perform(RequestBuilder requestBuilder)Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result.