接口的使用
org.springframework.test.web.reactive.server.WebTestClient.BodySpec
使用WebTestClient.BodySpec的程序包 程序包 说明 org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.test.web.reactive.server中WebTestClient.BodySpec的使用
类型参数类型为WebTestClient.BodySpec的org.springframework.test.web.reactive.server中的类 修饰符和类型 接口 说明 static interface
WebTestClient.BodySpec<B,S extends WebTestClient.BodySpec<B,S>>
Spec for expectations on the response body decoded to a single Object.org.springframework.test.web.reactive.server中WebTestClient.BodySpec的子接口 修饰符和类型 接口 说明 static interface
WebTestClient.ListBodySpec<E>
Spec for expectations on the response body decoded to a List.返回WebTestClient.BodySpec的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 <B> WebTestClient.BodySpec<B,?>
WebTestClient.ResponseSpec. expectBody(Class<B> bodyType)
Consume and decode the response body to a single object of type<B>
and then apply assertions.<B> WebTestClient.BodySpec<B,?>
WebTestClient.ResponseSpec. expectBody(ParameterizedTypeReference<B> bodyType)
Alternative toWebTestClient.ResponseSpec.expectBody(Class)
that accepts information about a target type with generics.