interface KotlinBodySpec<B>
Kotlin compliant WebTestClient.BodySpec
for expectations on the response body decoded
to a single Object, see KT-5464 for
more details.
Since
5.0.6
consumeWith |
Assert the exchange result with the given consumer. abstract fun consumeWith(consumer: (EntityExchangeResult<B>) -> Unit): KotlinBodySpec<B> |
isEqualTo |
Assert the extracted body is equal to the given value. abstract fun isEqualTo(expected: B): KotlinBodySpec<B> |
returnResult |
Exit the chained API and return an abstract fun returnResult(): EntityExchangeResult<B> |