JUNIT Test class in Eclipse - java.lang.ClassNotFoundException

后端 未结 26 2008
栀梦
栀梦 2020-12-14 13:55

I\'m trying to run my junit test (to verify that a properties file loads correctly) but I get ClassNotFoundException although the class is there and all requir

26条回答
  •  青春惊慌失措
    2020-12-14 14:30

    • Assumming you tried everything reasonable (delete target, refresh, clean, rebuild, maven install...) and that you realized that Eclipse does not behave reasonable...
    • Now: Check if there is no errors suggesting it can be a plugin (any plugin) that has something to do with tests.

    • In my case:

      • I removed EclEmma.
      • It started working...

    Spent few hours on trying to guess it!.

提交回复
热议问题