| Package | Description |
|---|---|
| org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient. |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WebTestClient.BodySpec<B,S extends WebTestClient.BodySpec<B,S>>
Spec for expectations on the response body decoded to a single Object.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WebTestClient.ListBodySpec<E>
Spec for expectations on the response body decoded to a List.
|
| Modifier and Type | Method and Description |
|---|---|
<B> WebTestClient.BodySpec<B,?> |
WebTestClient.ResponseSpec.expectBody(Class<B> bodyType)
Declare expectations on the response body decoded to
<B>. |
<B> WebTestClient.BodySpec<B,?> |
WebTestClient.ResponseSpec.expectBody(org.springframework.core.ParameterizedTypeReference<B> bodyType)
Variant of
WebTestClient.ResponseSpec.expectBody(Class) for a body type with generics. |