NoClassDefFoundError when using Powermock

前端 未结 5 1264
栀梦
栀梦 2020-12-09 01:24

I\'m running a junit test case using the PowerMock test runner. I\'m using the following command line to execute it:

java -cp .:jun         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 02:24

    I solved the problem. I used old version junit-4.0.jar. But I still don't understand why is missing the class TestClassRunner especially in the package powermock-easymock-junit-1.4.8.zip (there is junit-4.8.2.jar)? The junit-4.8.2.jar is missing the class TestClassRunner also.

提交回复
热议问题