接口的使用
cn.taketoday.test.web.servlet.MvcResult
使用MvcResult的程序包
程序包
说明
Contains server-side support for testing Web MVC applications.
Support for testing Web MVC applications via
WebTestClient
with MockMvc for server request
handling.Contains built-in
RequestBuilder
implementations.Contains built-in
ResultMatcher and ResultHandler implementations.-
cn.taketoday.test.web.servlet中MvcResult的使用
修饰符和类型方法说明ResultActions.andReturn()Return the result of the executed request for direct access to the results.参数类型为MvcResult的cn.taketoday.test.web.servlet中的方法修饰符和类型方法说明private voidMockMvc.applyDefaultResultActions(MvcResult mvcResult) static ResultActionsResultActions.forMvcResult(MvcResult mvcResult) voidPerform an action on the given result.voidAssert the result of an executed request. -
cn.taketoday.test.web.servlet.client中MvcResult的使用
-
cn.taketoday.test.web.servlet.request中MvcResult的使用
修饰符和类型方法说明static RequestBuilderMockMvcRequestBuilders.asyncDispatch(MvcResult mvcResult) Create aRequestBuilderfor an async dispatch from theMvcResultof the request that started async processing. -
cn.taketoday.test.web.servlet.result中MvcResult的使用
修饰符和类型方法说明private StringJsonPathResultMatchers.getContent(MvcResult result) private static cn.taketoday.http.ResponseCookieprivate static cn.taketoday.web.handler.method.HandlerMethodHandlerResultMatchers.getHandlerMethod(MvcResult result) private cn.taketoday.http.HttpStatus.SeriesStatusResultMatchers.getHttpStatusSeries(MvcResult result) private cn.taketoday.web.view.ModelAndViewModelResultMatchers.getModelAndView(MvcResult mvcResult) private static cn.taketoday.session.WebSessionRequestResultMatchers.getSession(MvcResult result) voidfinal voidPrintMvcResultdetails.protected voidPrintingResultHandler.printAsyncResult(MvcResult result)