类的使用
org.springframework.test.web.reactive.server.EntityExchangeResult
使用EntityExchangeResult的程序包 程序包 说明 org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.test.web.reactive.server中EntityExchangeResult的使用
返回EntityExchangeResult的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 EntityExchangeResult<Void>
WebTestClient.BodyContentSpec. isEmpty()
Assert the response body is empty and return the exchange result.EntityExchangeResult<byte[]>
WebTestClient.BodyContentSpec. returnResult()
Exit the chained API and return anExchangeResult
with the raw response content.EntityExchangeResult<B>
WebTestClient.BodySpec. returnResult()
Exit the chained API and return anExchangeResult
with the decoded response content.类型变量类型为EntityExchangeResult的org.springframework.test.web.reactive.server中的方法参数 修饰符和类型 方法 说明 WebTestClient.BodyContentSpec
WebTestClient.BodyContentSpec. consumeWith(Consumer<EntityExchangeResult<byte[]>> consumer)
Assert the response body content with the givenConsumer
.<T extends S>
TWebTestClient.BodySpec. consumeWith(Consumer<EntityExchangeResult<B>> consumer)
Assert the exchange result with the givenConsumer
.