I want to create a component test, for a rest endpoint that contact multiple other rest endpoints. The addresses for the endpoints are defined in application.properties. Using WebClient to contact the different endpoints.
req --> service --> remoteService A
--> remoteService B
--> remoteService C
How do I stub remoteService A,B and C in a Spring Boot test? I would like to stub the url to the remote services directly instead of overriding the beans for them.
Aucun commentaire:
Enregistrer un commentaire