Uses of Interface
org.springframework.test.web.servlet.client.RestTestClient.BodySpec
Packages that use RestTestClient.BodySpec
Package
Description
Support for testing Spring MVC applications via
RestTestClient with
MockMvc for server request handling.-
Uses of RestTestClient.BodySpec in org.springframework.test.web.servlet.client
Classes in org.springframework.test.web.servlet.client with type parameters of type RestTestClient.BodySpecModifier and TypeInterfaceDescriptionstatic interfaceRestTestClient.BodySpec<B, S extends RestTestClient.BodySpec<B,S>> Spec for expectations on the response body decoded to a single Object.Methods in org.springframework.test.web.servlet.client that return RestTestClient.BodySpecModifier and TypeMethodDescription<B> RestTestClient.BodySpec<B, ?> RestTestClient.ResponseSpec.expectBody(Class<B> bodyType) Consume and decode the response body to a single object of type<B>and then apply assertions.<B> RestTestClient.BodySpec<B, ?> RestTestClient.ResponseSpec.expectBody(ParameterizedTypeReference<B> bodyType) Alternative toRestTestClient.ResponseSpec.expectBody(Class)that accepts information about a target type with generics.