»»»»»

java.langNoClassDefFoundError errorsSpring TestContext Framework

Top patterns

  1. SpringJUnit4ClassRunner has thrown a NoClassDefFoundError

    Each specific spring-test version use a specific (or range) mockito version. This error occurs when the mockito version is not compatible with the spring-test version.

    You can take a look of your spring-test version in Maven Central to check which is the suggested mockito version.

DescriptionException TypeEntry MethodWeb pages

SpringJUnit4ClassRunner has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
15 frames hidden
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run
2Web pages
1Solution
NoClassDefFoundErrorSpringJUnit4ClassRunner.run2