-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stubbing in @BeforeAll #2095
Comments
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.The text was updated successfully, but these errors were encountered: