程序包 cn.taketoday.test.web.reactive.server
package cn.taketoday.test.web.reactive.server
-
类说明AbstractMockServerSpec<B extends WebTestClient.MockServerSpec<B>>Base class for implementations of
WebTestClient.MockServerSpec.Assertions on cookies of the response.Spec for setting up server-less testing against a RouterFunction.Default implementation ofWebTestClient.DefaultWebTestClient.DefaultBodySpec<B,S extends WebTestClient.BodySpec<B, S>> 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.Connector that handles requests by invoking anHttpHandlerrather than making actual requests to a network socket.Indicates that an error occurred after the server response was completed, viaReactiveHttpOutputMessage.writeWith(org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer>)orReactiveHttpOutputMessage.setComplete(), and can no longer be changed.JsonPath assertions.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.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.WebTestClient.BodySpec<B,S extends WebTestClient.BodySpec<B, S>> 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.WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>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.WebTestClient.UriSpec<S extends WebTestClient.RequestHeadersSpec<?>>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.