Aurel Pintea
05/02/2023, 3:12 PM'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.Joe Joyce
05/04/2023, 7:35 AM