spring-cloud-contract icon indicating copy to clipboard operation
spring-cloud-contract copied to clipboard

Make StubRunnerRule API more clear

Open hsdmiranda opened this issue 9 years ago • 0 comments

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.

hsdmiranda avatar Jul 25 '17 09:07 hsdmiranda