[其他]@RunWith(TestClassRunner.class)报Class<TestClassRunner> cannot be resolved to a type
来源:互联网 发布:贷款被大数据什么意思 编辑:程序博客网 时间:2024/06/09 20:46
- -今天学了一下Junit,但是添加Junit包后,其它地方都没错了,唯独@RunWith(TestClassRunner.class)这行报错,搞得十分尴尬。
原因:所加载的Junit版本过低,并没有这个TestClassRunner.class类
解决:去下载较新版本的Junit,下载链接(里面有着各种版本,去下载你所需要的版本):http://cn.jarfire.org/junit.html
0 0
- [其他]@RunWith(TestClassRunner.class)报Class<TestClassRunner> cannot be resolved to a type
- class cannot be resolved to a type 或者JSP import class cannot be resolved to
- Class<SpringJUnit4ClassRunner> cannot be resolved to a type spring4.32的junit测试报错解决
- 报org.apache.axis cannot be resolved to a type且Syntax error on token "enum", class expected错误
- myeclipse:报String cannot be resolved to a type错误
- Button cannot be resolved to a type报错
- 关于WebServlet cannot be resolved to a type报错
- 报错:BASE64Encoder cannot be resolved to a type
- XX cannot be resolved to a type 报错
- eclipse报HttpServletRequest cannot be resolved to a type错误
- hibernate报错:JoinColumn cannot be resolved to a type
- 报错Test cannot be resolved to a type
- org.apache.jasper.JasperException: Unable to compile class for JSP: List cannot be resolved to a type 错误
- org.apache.axis cannot be resolved to a type且Syntax error on token "enum", class expected错误
- cannot be resolved to a type解决方案
- httpservletrequest cannot be resolved to a type
- cannot be resolved to a type
- cannot be resolved to a type
- GDB调试汇总
- nginx配置之正常运行配置
- ZOJ 3875 Lunch Time(水)
- 22个值得收藏的android开源代码-UI篇
- 支持lua脚本的串口调试助手
- [其他]@RunWith(TestClassRunner.class)报Class<TestClassRunner> cannot be resolved to a type
- 混合 WebDriver 和 RC 技术
- 【Unity技巧】Unity中的优化技术
- DD语句
- "libc.so.6: version `GLIBC_2.14' not found"
- 原码、反码和补码 再了解
- shell特殊变量$0,$#,$@,$*,$?,$$和命令行参数
- iOS中从零开始使用protobuf
- NSAttributedString的用法详解