接口的使用
cn.taketoday.test.web.servlet.ResultActions
使用ResultActions的程序包
程序包
说明
Contains server-side support for testing Web MVC applications.
Support for testing Web MVC applications via
WebTestClient
with MockMvc for server request
handling.-
cn.taketoday.test.web.servlet中ResultActions的使用
修饰符和类型方法说明ResultActions.andDo(ResultHandler handler) Perform a general action.ResultActions.andExpect(ResultMatcher matcher) Perform an expectation.default ResultActionsResultActions.andExpectAll(ResultMatcher... matchers) Perform multiple expectations, with the guarantee that all expectations will be asserted even if one or more expectations fail with an exception.static ResultActionsResultActions.forMvcResult(MvcResult mvcResult) MockMvc.perform(RequestBuilder requestBuilder) Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result.default ResultActionsMockMvcBuilder.perform(RequestBuilder requestBuilder) Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result. -
cn.taketoday.test.web.servlet.client中ResultActions的使用
修饰符和类型方法说明static ResultActionsMockMvcWebTestClient.resultActionsFor(ExchangeResult exchangeResult) This method can be used to apply further assertions on a givenExchangeResultbased the state of the server response.