expectBody

inline fun <B : Any> WebTestClient.ResponseSpec.expectBody(): KotlinBodySpec<B>

Extension for ResponseSpec.expectBody providing an expectBody<Foo>() variant and a workaround for KT-5464 which prevents to use WebTestClient.BodySpec in Kotlin.

Author

Sebastien Deleuze

Since

5.0