Closed
Description
Stéphane Nicoll opened SPR-15286 and commented
Spring Boot has a @RestClientTest
for pure client-side tests. We currently auto-configure MockRestServiceServer
and bind any RestTemplate
created by the RestTemplateBuilder
to it.
This would be pretty awesome if we could port that feature to WebClient
transparently if webflux is on the classpath. That would require that MockRestServiceServer
can be configured with a WebClient
in addition to a RestTemplate
Sub-tasks:
- Document how to test WebClient code with a mock server [SPR-16482] #19295 Document how to test WebClient code with a mock server
15 votes, 24 watchers