| 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.UriSpec<S extends WebTestClient.RequestHeadersSpec<?>>
Specification for providing the URI of a request.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WebTestClient.RequestBodySpec |
| Modifier and Type | Method and Description |
|---|---|
WebTestClient.RequestHeadersSpec<?> |
WebTestClient.RequestBodySpec.body(org.springframework.web.reactive.function.BodyInserter<?,? super org.springframework.http.client.reactive.ClientHttpRequest> inserter)
Set the body of the request to the given
BodyInserter. |
<T,S extends org.reactivestreams.Publisher<T>> |
WebTestClient.RequestBodySpec.body(S publisher,
Class<T> elementClass)
Set the body of the request to the given asynchronous
Publisher. |
WebTestClient.RequestHeadersSpec<?> |
WebTestClient.RequestBodySpec.syncBody(Object body)
Set the body of the request to the given synchronous
Object and
perform the request. |
| Modifier and Type | Method and Description |
|---|---|
WebTestClient.UriSpec<WebTestClient.RequestHeadersSpec<?>> |
WebTestClient.delete()
Prepare an HTTP DELETE request.
|
WebTestClient.UriSpec<WebTestClient.RequestHeadersSpec<?>> |
WebTestClient.get()
Prepare an HTTP GET request.
|
WebTestClient.UriSpec<WebTestClient.RequestHeadersSpec<?>> |
WebTestClient.head()
Prepare an HTTP HEAD request.
|
WebTestClient.UriSpec<WebTestClient.RequestHeadersSpec<?>> |
WebTestClient.options()
Prepare an HTTP OPTIONS request.
|