Hello,
Can someone please help me with the dynamic port usage? I wrote a wiremock test using @WiremockTest annotation. Wiremock server is coming up on a default port. I am able to call my service from the test but I am not able to understand how do I modify the wiremock's dynamic port on the fly in the service, so that service makes the third party service call to wiremock instead of actual third party service. I am blocked on this. Request the team to help.
P.S. - Intent is to run each wiremock test class with a separate wiremock server on dynamic port against the service.