我在創建JUNIT 測試類的時候總是出現問題,
只要一輸入@RunWith(SpringJUnit4ClassRunner.class)
就會出現這個問題The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files
這是什么原因引起的呢?
只要一輸入@RunWith(SpringJUnit4ClassRunner.class)
就會出現這個問題The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files
這是什么原因引起的呢?
2015-02-22
舉報
2015-03-02
后來知道問題所在了,我用的是 android 提供的ECLIPSE 它不支持 JUnit 4總是包錯,后來換了官方的就沒有問題了。
2015-03-02
后來知道問題所在了,我用的是 android 提供的ECLIPSE 它不支持 JUnit 4總是包錯,后來換了官方的就沒有問題了。
2015-02-23
在eclipse中重新配置一下jdk的目錄試試,或者檢查是否導入了JUnit的jar包