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.RequestHeadersSpec<S extends WebTestClient.RequestHeadersSpec<S>>
Specification for adding request headers and performing an exchange.
|
static interface |
WebTestClient.RequestHeadersUriSpec<S extends WebTestClient.RequestHeadersSpec<S>>
Specification for providing request headers and the URI of a request.
|
static interface |
WebTestClient.UriSpec<S extends WebTestClient.RequestHeadersSpec<?>>
Specification for providing the URI of a request.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
WebTestClient.RequestBodySpec
Specification for providing body of a request.
|
static interface |
WebTestClient.RequestBodyUriSpec
Specification for providing the body and the URI of a request.
|
static interface |
WebTestClient.RequestHeadersUriSpec<S extends WebTestClient.RequestHeadersSpec<S>>
Specification for providing request headers and the URI of a request.
|
Modifier and Type | Method and Description |
---|---|
WebTestClient.RequestHeadersSpec<?> |
WebTestClient.RequestBodySpec.body(BodyInserter<?,? super ClientHttpRequest> inserter)
Set the body of the request to the given
BodyInserter . |
WebTestClient.RequestHeadersSpec<?> |
WebTestClient.RequestBodySpec.body(Object producer,
Class<?> elementClass)
Set the body from the given producer.
|
WebTestClient.RequestHeadersSpec<?> |
WebTestClient.RequestBodySpec.body(Object producer,
ParameterizedTypeReference<?> elementTypeRef)
Set the body from the given producer.
|
<T,S extends Publisher<T>> |
WebTestClient.RequestBodySpec.body(S publisher,
Class<T> elementClass)
Set the body from the given
Publisher . |
<T,S extends Publisher<T>> |
WebTestClient.RequestBodySpec.body(S publisher,
ParameterizedTypeReference<T> elementTypeRef)
Variant of
WebTestClient.RequestBodySpec.body(Publisher, Class) that allows providing
element type information with generics. |
WebTestClient.RequestHeadersSpec<?> |
WebTestClient.RequestBodySpec.bodyValue(Object body)
Set the body to the given
Object value. |
WebTestClient.RequestHeadersSpec<?> |
WebTestClient.RequestBodySpec.syncBody(Object body)
Deprecated.
as of Spring Framework 5.2 in favor of
WebTestClient.RequestBodySpec.bodyValue(Object) |