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(java.lang.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 to
WebTestClient.ResponseSpec.expectBody(Class) that accepts information
about a target type with generics. |