Uses of Interface
org.springframework.test.web.servlet.ResultActions
Package
Description
Contains server-side support for testing Spring MVC applications.
Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.-
Uses of ResultActions in org.springframework.test.web.servlet
Modifier and TypeMethodDescriptionResultActions.andDo
(ResultHandler handler) Perform a general action.ResultActions.andExpect
(ResultMatcher matcher) Perform an expectation.default ResultActions
ResultActions.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.MockMvc.perform
(RequestBuilder requestBuilder) Perform a request and return a type that allows chaining further actions, such as asserting expectations, on the result. -
Uses of ResultActions in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionstatic ResultActions
MockMvcWebTestClient.resultActionsFor
(ExchangeResult exchangeResult) This method can be used to apply further assertions on a givenExchangeResult
based the state of the server response.