0
点赞
收藏
分享

微信扫一扫

org.junit.runner.RunWith的bug


<span style="font-size:18px;">2015-09-13 00:45:30 AnnotationAttributesReadingVisitor.java DEBUG Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
java.lang.ClassNotFoundException: org.junit.runner.RunWith

2015-09-13 00:45:30 AnnotationAttributesReadingVisitor.java DEBUG Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
java.lang.ClassNotFoundException: org.junit.Test</span>

原因分析:

原来使用的是Eclipse自带的junit4,出现以上错误,发现junit包版本太低,需要4.5或以上的版本 。


换成junit4.10,问题解决。

举报

相关推荐

0 条评论