public static interface WebTestClient.BodySpec<B,S extends WebTestClient.BodySpec<B,S>>
Modifier and Type | Method and Description |
---|---|
<T extends S> |
consumeWith(java.util.function.Consumer<EntityExchangeResult<B>> consumer)
Assert the exchange result with the given
Consumer . |
<T extends S> |
isEqualTo(B expected)
Assert the extracted body is equal to the given value.
|
EntityExchangeResult<B> |
returnResult()
Exit the chained API and return an
ExchangeResult with the
decoded response content. |
<T extends S> T isEqualTo(B expected)
<T extends S> T consumeWith(java.util.function.Consumer<EntityExchangeResult<B>> consumer)
Consumer
.EntityExchangeResult<B> returnResult()
ExchangeResult
with the
decoded response content.