I am running a junit test case using the PowerMock test runner.
When I'm running the class, I'm receiving this error:
java.lang.NoClassDefFoundError: org/powermock/tests/utils/TestSuiteChunker
Caused by: java.lang.ClassNotFoundException: org.powermock.tests.utils.TestSuiteChunker
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 29 more
How can I fix it?
Maybe some wrong auto-imports from your IDE? See this answer: NoClassDefFoundError when using Powermock
Also, please share the piece of code (with imports) you're trying to run.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.