* #883: Using boolean values in Wiremock.server so that it's possible to identify if dynamic ports have been configured.
* #883: Triage feedback. Added @author. Updated license year. Changed test name.
* #883: Fixed portIsFixed logic. Added test to check expect port status to applicable tests. @DirtiesContext to test so that context is cleared down to avoid conflict in the next test.
* #883: Removed duplicate portIsFixed/portIsNotFixed unit tests.
* #883: Checkstyle fixes.
without this change it's hard to add HTTPs support for the stubs ran by stub runner. It's close to impossible to alter the default configuration of HTTP server stubs at all (e.g. lower the logging level of WireMock stubs etc.)
with this change we allow to pass a class as a property to stub runner either via annotation, JUnit rule / extension or just system properties. That way the configurer will be applied at runtime for WireMock stubs (implementors of custom HTTP server stubs will need to perform some additional work to allow this)
fixes gh-742
without this change we always include `spring-boot-starter-web` to Stub Runner. With this change the dependency is optional. Thanks to this reactive applications will be able to work fine with contract on the classpath.
without this change we always run Stub Runner test execution listener, even if the test class is not annotated. With this change we run the listener only, if the test class was annotated with `@AutoConfigureStubRunner`.
Also we add information about the `java.net.SocketException: Unexpected end of file from server` exception to the docs and how to override that issue.
Fixes gh-798, gh-809, gh-799
When port = 0, WireMock will assign different ports for admin server and mock server. As a result, the original implementation will send admin requests to mock server, which is wrong behavior.
If this PR got merged, WireMock will directly add stubs instead of sending admin requests, which is correct behavior and also improves performance.