Hi Team, I have migrated from Java 8 to 17, and Sp...
# help
k
Hi Team, I have migrated from Java 8 to 17, and SpringBoot 2.7.x to 3.0.x. I was using,
Copy code
<dependency>
   <groupId>com.github.tomakehurst</groupId>
   <artifactId>wiremock-jre8</artifactId>
   <version>3.0.1</version>
   <scope>test</scope>
</dependency>
I have changed it to,
Copy code
<dependency>
   <groupId>org.wiremock</groupId>
   <artifactId>wiremock-standalone</artifactId>
   <version>3.10.0</version>
   <scope>test</scope>
</dependency>
Now, tests always return a 500 INTERNAL_SERVER_ERROR instead of a 200 or 401. Could you help me with the solution to this issue stated here by du-it I'm facing the same issue - https://github.com/wiremock/wiremock/issues/1928#issuecomment-1653185870
l
Hi Have you looked at the new WireMock spring boot integration? You will need the wiremock jetty12 distribution to make it work with the latest Spring release. Information on that can be found here - https://wiremock.org/docs/jetty-12/ I would definitely look at the new spring integration we recently released as well. - https://wiremock.org/docs/spring-boot/
i
@Karishni Govin have you read my guide on integrating WireMock and Spring Boot and Cucumber: https://medium.com/@arc-e-tect/wiremock-cucumber-and-springboot-ae3e107bd3d7 When you skip the Cucumber stuff, you should have your answer. I recently updated the guide with WireMock Spring Boot 3.6.0