| Package | Description |
|---|---|
| org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient. |
| Modifier and Type | Method and Description |
|---|---|
FluxExchangeResult<org.springframework.core.io.buffer.DataBuffer> |
WebTestClient.ResponseSpec.returnResult()
Return the exchange result with the body decoded to
Flux<DataBuffer>. |
<T> FluxExchangeResult<T> |
WebTestClient.ResponseSpec.returnResult(Class<T> elementType)
Return the exchange result with the body decoded to
Flux<T>. |
<T> FluxExchangeResult<T> |
WebTestClient.ResponseSpec.returnResult(org.springframework.core.ParameterizedTypeReference<T> elementType)
Variant of
WebTestClient.ResponseSpec.returnResult(Class) for element types with generics. |
| Modifier and Type | Method and Description |
|---|---|
void |
FluxExchangeResult.consumeWith(Consumer<FluxExchangeResult<T>> consumer)
Invoke the given consumer within
ExchangeResult.assertWithDiagnostics(Runnable)
passing "this" instance to it. |