spring-cloud-contract
spring-cloud-contract copied to clipboard
Make StubRunnerRule API more clear
When I was trying to use @ClassRunner on my test like the example bellow:
@ClassRule public static StubRunnerRule rule = new StubRunnerRule()
.withPort(8090)
.downloadStub("ps.furby", "email");
It would not initialise on the port 8090, but on a random port. In order to workaround this, the withPort has to come after the .downloadStub. The API should not allow that or the order should not matter.