Issue
I am using the below given dependency in the build.gradle for application tests:
testImplementation 'org.springframework.cloud:spring-cloud-starter-contract-verifier:4.0.1'
Now when I updated the Spring Boot version from 2.x to 3.x, I am getting java.lang.NoClassDefFoundError for TestSocketUtils.
Wondering if anyone has got this issue before?
Solution
Please add spring-cloud-test-support dependency in build.gradle:
testImplementation 'org.springframework.cloud:spring-cloud-test-support:4.0.1'
This has the org.springframework.cloud.test.TestSocketUtils class in it.
Answered By - Anish B.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.