Open ebcFlagman opened 7 months ago
I have the same issue, 4.0.x works fine 4.1.x generate this error, it's like the ramdom port ${wiremock.server.port} is the default one in the setup method (@BeforeAll)
Please double check that you're using the latest version cause we did fix this problem
I've update to the latest 4.1.2 version and got the error described in the description
That's not good, we'll look into that ASAP.
@marcingrzejszczak did you have a chance to look into this?
I'm currently upgrading to the latest spring-boot 3.x version and my tests fails now with the following exception:
My Test is annotated with
In the
@BeforeAll
Method I stub the endpoints.When I move the stubs into e.g.
@BeforeEach
everythink works fine.Used dependency:
testImplementation 'org.springframework.cloud:spring-cloud-starter-contract-stub-runner:4.1.1'
When I use in addition the
testImplementation 'org.springframework.cloud:spring-cloud-contract-wiremock:4.0.4'
the tests run as before the upgrade.