tomakehurst/wiremock — pull request #63 by neilg (2013-10-19 12:49:39+00:00)
Title: Free ports

Wiremock can already bind to any available port by configuring port 0, but the actual port used is not exposed. So we can't use this useful feature. This change exposes the actual listening ports through methods on WireMockServer, WireMockRule, and WireMockClassRule.