lantunes / fixd

An HTTP Server Fixture for Testing HTTP Clients and mocking web services, and a Java Micro Web Framework
http://bigtesting.org/fixd
Apache License 2.0
41 stars 6 forks source link

Make server port queryable #31

Closed pniederw closed 9 years ago

pniederw commented 10 years ago

In most cases, a server fixture shouldn't run on a fixed port, as there is no guarantee that any particular port is unused at a given time (think CI server). Instead, a free port should be chosen automatically, which can be achieved by passing 0 as the port number. However, what seems to be missing is a way to query the actual port, so that clients know which port to connect to.

pniederw commented 10 years ago

Any chance to get this implemented soonish? We are already hitting this on CI.

lantunes commented 9 years ago

Hi, thanks for the suggestion. This is a very important point. I apologize for having been away from this project for so long, and thanks for your interest in it. I will try to get this implemented and released within the next week.

lantunes commented 9 years ago

This has been implemented in version 1.0.3, released today.