expectBody

inline fun <B : Any> WebTestClient.ResponseSpec.expectBody(): WebTestClient.BodySpec<B, *>

Extension for ResponseSpec.expectBody providing an expectBody<Foo>() variant leveraging Kotlin reified type parameters. This extension is not subject ot type erasure and retains actual generic type arguments.

Author

Sebastien Deleuze

Arjen Poutsma

Since

5.0