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

Stackoverflow解答: 

  1. Right click the project in Package Explorer, and click Properties.
  2. Click the Libraries tab.
  3. Click the Add library button.
  4. Select JUnit and click Next.
  5. Select JUnit 4 (that's what I am using).
  6. Click finish.
  7. Now right click the file containing unit tests and select Properties.
  8. Under the Run/Debug settings, remove any entries from the Launch Configurations for that file. Hit ok.

一般情况下,无需配置Junit,remove即可。 

猜你喜欢

转载自blog.csdn.net/a1058420631/article/details/88643465