Skip to main content
4 events
when toggle format what by license comment
Aug 17, 2020 at 15:18 comment added Mansour.M For whoever may need it, mocking two ports in the code is possible by creating two server objects. In this answer the servers are created using the jar file. In the code you create new instances of the server.
Aug 17, 2020 at 15:16 vote accept Mansour.M
Jul 9, 2020 at 18:13 comment added Mansour.M In production the servers are separate. In test, each server is a container on a separate port and they are on the same system. So what should be the data server is a data container and the authentication server is the authentication container. It is just how it has been designed and changing it is way too much work. I am using the java version of wiremock-standalone/ I have tried having two instances but not having two separate directories. I shall give it a try. Thanks!
Jul 9, 2020 at 13:13 history answered agoff CC BY-SA 4.0