类的使用
cn.taketoday.test.web.reactive.server.ExchangeResult
使用ExchangeResult的程序包
程序包
说明
Support for testing Web MVC applications via
WebTestClient
with MockMvc for server request
handling.-
cn.taketoday.test.web.reactive.server中ExchangeResult的使用
修饰符和类型类说明classExchangeResultsub-class that exposes the response body fully extracted to a representation of type<T>.classExchangeResultvariant with the response body decoded asFlux<T>but not yet consumed.修饰符和类型字段说明private final ExchangeResultCookieAssertions.exchangeResultprivate final ExchangeResultDefaultWebTestClient.DefaultResponseSpec.exchangeResultprivate final ExchangeResultHeaderAssertions.exchangeResultprivate final ExchangeResultStatusAssertions.exchangeResult修饰符和类型方法说明(专用程序包) ExchangeResultWiretapConnector.getExchangeResult(String requestId, String uriTemplate, Duration timeout) Create theExchangeResultfor the given "request-id" header value.限定符构造器说明CookieAssertions(ExchangeResult exchangeResult, WebTestClient.ResponseSpec responseSpec) (专用程序包)DefaultResponseSpec(ExchangeResult exchangeResult, cn.taketoday.web.reactive.function.client.ClientResponse response, Consumer<EntityExchangeResult<?>> entityResultConsumer, Duration timeout) (专用程序包)EntityExchangeResult(ExchangeResult result, T body) (专用程序包)ExchangeResult(ExchangeResult other) Copy constructor to use after body is decoded and/or consumed.(专用程序包)FluxExchangeResult(ExchangeResult result, reactor.core.publisher.Flux<T> body) (专用程序包)HeaderAssertions(ExchangeResult result, WebTestClient.ResponseSpec spec) (专用程序包)StatusAssertions(ExchangeResult result, WebTestClient.ResponseSpec spec) -
cn.taketoday.test.web.servlet.client中ExchangeResult的使用
修饰符和类型方法说明static ResultActionsMockMvcWebTestClient.resultActionsFor(ExchangeResult exchangeResult) This method can be used to apply further assertions on a givenExchangeResultbased the state of the server response.