Uses of Package
org.springframework.test.web.reactive.server
Package
Description
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.-
ClassDescriptionAssertions on cookies of the response.
ExchangeResult
sub-class that exposes the response body fully extracted to a representation of type<T>
.Container for request and response details for exchanges performed throughWebTestClient
.ExchangeResult
variant with the response body decoded asFlux<T>
but not yet consumed.Assertions on headers of the response.JsonPath assertions.Contract that frameworks or applications can use to pre-package a set of customizations to aWebTestClient.MockServerSpec
and expose that as a shortcut.Assertions on the response status.Client for testing web servers that usesWebClient
internally to perform requests while also providing a fluent API to verify responses.Spec for expectations on the response body content.Spec for expectations on the response body decoded to a single Object.Steps for customizing theWebClient
used to test with, internally delegating to aWebClient.Builder
.Specification for customizing controller configuration equivalent to, and internally delegating to, aWebFluxConfigurer
.Spec for expectations on the response body decoded to a List.Base specification for setting up tests without a server.Specification for providing body of a request.Specification for providing the body and the URI of a request.Specification for adding request headers and performing an exchange.Specification for providing request headers and the URI of a request.Chained API for applying assertions to a response.Specification for customizing router function configuration.Specification for providing the URI of a request.Contract that frameworks or applications can use to pre-package a set of customizations to aWebTestClient.Builder
and expose that as a shortcut.XPath assertions for theWebTestClient
. -
ClassDescriptionContainer for request and response details for exchanges performed through
WebTestClient
.Client for testing web servers that usesWebClient
internally to perform requests while also providing a fluent API to verify responses.Steps for customizing theWebClient
used to test with, internally delegating to aWebClient.Builder
.