| Package | Description |
|---|---|
| org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient. |
| org.springframework.test.web.servlet.client |
Support for testing Spring MVC applications via
WebTestClient
with MockMvc for server request
handling. |
| Modifier and Type | Class and Description |
|---|---|
class |
EntityExchangeResult<T>
ExchangeResult sub-class that exposes the response body fully
extracted to a representation of type <T>. |
class |
FluxExchangeResult<T>
ExchangeResult variant with the response body decoded as
Flux<T> but not yet consumed. |
| Constructor and Description |
|---|
CookieAssertions(ExchangeResult exchangeResult,
WebTestClient.ResponseSpec responseSpec) |
| Modifier and Type | Method and Description |
|---|---|
static ResultActions |
MockMvcWebTestClient.resultActionsFor(ExchangeResult exchangeResult)
This method can be used to apply further assertions on a given
ExchangeResult based the state of the server response. |