Uses of Class
org.springframework.test.web.servlet.client.EntityExchangeResult
Packages that use EntityExchangeResult
Package
Description
Support for testing Spring MVC applications via
RestTestClient with
MockMvc for server request handling.- 
Uses of EntityExchangeResult in org.springframework.test.web.servlet.clientMethods in org.springframework.test.web.servlet.client that return EntityExchangeResultModifier and TypeMethodDescriptionRestTestClient.BodyContentSpec.isEmpty()Assert the response body is empty and return the exchange result.EntityExchangeResult<byte[]> RestTestClient.BodyContentSpec.returnResult()Exit the chained API and return anExchangeResultwith the raw response content.RestTestClient.BodySpec.returnResult()Exit the chained API and return anEntityExchangeResultwith the decoded response content.<T> EntityExchangeResult<T> RestTestClient.ResponseSpec.returnResult(Class<T> elementClass) Exit the chained flow in order to consume the response body externally.<T> EntityExchangeResult<T> RestTestClient.ResponseSpec.returnResult(ParameterizedTypeReference<T> elementTypeRef) Alternative toRestTestClient.ResponseSpec.returnResult(Class)that accepts information about a target type with generics.Method parameters in org.springframework.test.web.servlet.client with type arguments of type EntityExchangeResultModifier and TypeMethodDescriptionRestTestClient.BodyContentSpec.consumeWith(Consumer<EntityExchangeResult<byte[]>> consumer) Assert the response body content with the givenConsumer.<T extends S>
 TRestTestClient.BodySpec.consumeWith(Consumer<EntityExchangeResult<B>> consumer) Assert the exchange result with the givenConsumer.<T extends B>
 TRestTestClient.Builder.entityExchangeResultConsumer(Consumer<EntityExchangeResult<?>> consumer) Configure anEntityExchangeResultcallback that is invoked every time after a response is fully decoded to a single entity, to a List of entities, or to a byte[].