Package org.springframework.test.web.reactive.server
Types
KotlinBodySpec
Link copied to clipboard
Kotlin compliant
WebTestClient.BodySpec
for expectations on the response body decoded to a single Object, see KT-5464 for more details.Functions
body
Link copied to clipboard
inline fun <T : Any, S : Publisher<T>> WebTestClient.RequestBodySpec.body(publisher: S): WebTestClient.RequestHeadersSpec<*>
Content copied to clipboard
Extension for RequestBodySpec.body providing a variant without explicit class parameter thanks to Kotlin reified type parameters.
inline fun <T : Any> WebTestClient.RequestBodySpec.body(producer: Any): WebTestClient.RequestHeadersSpec<*>
Content copied to clipboard
Extension for RequestBodySpec.body providing a
body<T>(Any)
variant leveraging Kotlin reified type parameters.inline fun <T : Any> WebTestClient.RequestBodySpec.body(flow: Flow<T>): WebTestClient.RequestHeadersSpec<*>
Content copied to clipboard
Extension for RequestBodySpec.body providing a
body(Flow<T>)
variant leveraging Kotlin reified type parameters.expectBody
Link copied to clipboard
inline fun <B : Any> WebTestClient.ResponseSpec.expectBody(): KotlinBodySpec<B>
Content copied to clipboard
Extension for ResponseSpec.expectBody providing an
expectBody<Foo>()
variant and a workaround for KT-5464 which prevents to use WebTestClient.BodySpec
in Kotlin.expectBodyList
Link copied to clipboard
inline fun <E : Any> WebTestClient.ResponseSpec.expectBodyList(): WebTestClient.ListBodySpec<E>
Content copied to clipboard
returnResult
Link copied to clipboard
inline fun <T : Any> WebTestClient.ResponseSpec.returnResult(): FluxExchangeResult<T>
Content copied to clipboard