程序包的使用
cn.taketoday.test.web.reactive.server
程序包
说明
Infra support for testing server endpoints via
WebTestClient.Support for testing Web MVC applications via
WebTestClient
with MockMvc for server request
handling.-
类说明Client for testing web servers that uses
WebClientinternally to perform requests while also providing a fluent API to verify responses.Steps for customizing theWebClientused to test with, internally delegating to aWebClient.Builder. -
类说明Base class for implementations of
WebTestClient.MockServerSpec.Assertions on cookies of the response.Default implementation ofWebTestClient.Builder.ExchangeResultsub-class that exposes the response body fully extracted to a representation of type<T>.Container for request and response details for exchanges performed throughWebTestClient.ExchangeResultvariant 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.MockServerSpecand expose that as a shortcut.Assertions on the response status.Client for testing web servers that usesWebClientinternally 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 theWebClientused to test with, internally delegating to aWebClient.Builder.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 to encapsulate customizations to aWebTestClient.Builder.Decorate anotherClientHttpConnectorwith the purpose of intercepting, capturing, and exposing actual request and response data transmitted to and received from the server.ClientHttpRequestDecorator that intercepts and saves the request body.ClientHttpResponseDecorator that intercepts and saves the response body.Tap into a Publisher of data buffers to save the content.XPath assertions for theWebTestClient.Lets us be able to use lambda expressions that could throw checked exceptions, sinceXpathExpectationsHelperthrowsExceptionon its methods. -
类说明Container for request and response details for exchanges performed through
WebTestClient.SimpleClientHttpResponseextension that also exposes a result object from the underlying mock server exchange for further assertions on the state of the server response after the request is performed.Client for testing web servers that usesWebClientinternally to perform requests while also providing a fluent API to verify responses.Steps for customizing theWebClientused to test with, internally delegating to aWebClient.Builder.