TL;DR; We are configuring the Pact provider within...
# pact-jvm
a
TL;DR; We are configuring the Pact provider within our Spring Boot 3, Kotlin app. We are currently facing the following error:
Copy code
'org.springframework.http.HttpStatus org.springframework.test.web.reactive.server.EntityExchangeResult.getStatus()'
java.lang.NoSuchMethodError: 'org.springframework.http.HttpStatus org.springframework.test.web.reactive.server.EntityExchangeResult.getStatus()'
	at au.com.dius.pact.provider.spring.junit5.WebFluxBasedTestTarget$DefaultImpls.executeInteraction(WebFluxBasedTestTarget.kt:49)
	at au.com.dius.pact.provider.spring.junit5.WebTestClientTarget.executeInteraction(WebTestClientTarget.kt:9)
	at au.com.dius.pact.provider.junit5.PactVerificationContext.validateTestExecution(PactVerificationContext.kt:106)
	at au.com.dius.pact.provider.junit5.PactVerificationContext.verifyInteraction(PactVerificationContext.kt:60)
The NoSuchMethodError is thrown due to having a misalignment between and older and a newer Spring version, as getStatus might be a newer introduced method. Can anyone provide guidance on how could we rectify this issue, please? Happy to share more info about our dependencies, but we are using the latest versions of all the main stuff I believe.
j
Hey, Aurel. I had a chat with @uglyog about this and it looks like there is an open issue for this on the Pact-JVM GitHub repo: https://github.com/pact-foundation/pact-jvm/issues/1660. Unfortunately, you can't use the older Pact-JVM spring support libraries with Spring 6.