spring-framework / org.springframework.test.web.client / MockRestServiceServer / bindTo

bindTo

open static fun bindTo(restTemplate: RestTemplate): MockRestServiceServerBuilder

Return a builder for a MockRestServiceServer that should be used to reply to the given RestTemplate.

Since
4.3

open static fun bindTo(asyncRestTemplate: AsyncRestTemplate): MockRestServiceServerBuilder

Return a builder for a MockRestServiceServer that should be used to reply to the given AsyncRestTemplate.

Since
4.3

open static fun bindTo(restGateway: RestGatewaySupport): MockRestServiceServerBuilder

Return a builder for a MockRestServiceServer that should be used to reply to the given RestGatewaySupport.

Since
4.3