Closed
Description
If WebFlux is on the classpath it would be cool if MockRestServiceServer
could be configured with a WebClient
instred of a RestTemplate
.
Since both will be on the classpath (RestTemplate
is in a shared module), the annotation should probably have an attribute to indicate a preference. Not sure that both can be used at the same time though.
@RestClientTest(useWebClient=true)
An enum will be better but I can't find good names for the values (REST_TEMPLATE
is pretty gross).
This currently requires some changes in Spring Framework, I've created an issue