JUnit: NoClassDefFoundError: org/junit/runner/manipulation/Filter

后端 未结 3 1032
暗喜
暗喜 2021-02-05 08:50

When I try to run some unit tests, the following error is raised:

java.lang.NoClassDefFoundError: org/junit/runner/manipulation/Filter
    at java.lang.Class.for         


        
3条回答
  •  误落风尘
    2021-02-05 08:59

    this error can be caused by adding the JUnit library to Modulepath rather than Classpath.

    in Eclipse the left most panel "Package Explorer" right click your project go down to properties then go to "Java Build Path" Click on "Classpath" NOT "Modulepath" click "Add Library..." then Junit.

提交回复
热议问题