I'm running a junit
test case using the PowerMock
test runner.
I'm using the following command line to execute it:
java -cp .:junit-4.9b2.jar:easymock-3.0.jar:powermock-easymock-1.4.8-full.jar org.junit.runner.JUnitCore SampleTest
When doing so I am receiving this error:
initializationError(SampleTest)
java.lang.NoClassDefFoundError: org/junit/internal/runners/TestClassRunner
...
How can I fix it?
question from:https://stackoverflow.com/questions/5292440/noclassdeffounderror-when-using-powermock