Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
Modifier and Type | Method and Description |
---|---|
<T> FluxExchangeResult<T> |
WebTestClient.ResponseSpec.returnResult(Class<T> elementClass)
Exit the chained flow in order to consume the response body
externally, e.g.
|
<T> FluxExchangeResult<T> |
WebTestClient.ResponseSpec.returnResult(ParameterizedTypeReference<T> elementTypeRef)
Alternative to
WebTestClient.ResponseSpec.returnResult(Class) that accepts information
about a target type 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. |