接口的使用
org.springframework.test.web.servlet.MvcResult
使用MvcResult的程序包 程序包 说明 org.springframework.test.web.servlet Contains server-side support for testing Spring MVC applications.org.springframework.test.web.servlet.request Contains built-inRequestBuilderimplementations.org.springframework.test.web.servlet.result Contains built-inResultMatcherandResultHandlerimplementations.org.springframework.test.web.servlet中MvcResult的使用
返回MvcResult的org.springframework.test.web.servlet中的方法 修饰符和类型 方法 说明 MvcResultResultActions. andReturn()Return the result of the executed request for direct access to the results.org.springframework.test.web.servlet.request中MvcResult的使用
参数类型为MvcResult的org.springframework.test.web.servlet.request中的方法 修饰符和类型 方法 说明 static RequestBuilderMockMvcRequestBuilders. asyncDispatch(MvcResult mvcResult)Create aRequestBuilderfor an async dispatch from theMvcResultof the request that started async processing.org.springframework.test.web.servlet.result中MvcResult的使用
参数类型为MvcResult的org.springframework.test.web.servlet.result中的方法 修饰符和类型 方法 说明 voidPrintingResultHandler. handle(MvcResult result)PrintMvcResultdetails.protected voidPrintingResultHandler. printAsyncResult(MvcResult result)