Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    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!
    – Mansour.M
    Commented Jul 9, 2020 at 18:13
  • 2
    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.
    – Mansour.M
    Commented Aug 17, 2020 at 15:18