Robolectric_配置时cannot find class 'org.junit.Test' on project build path的问题
来源:互联网 发布:jsp网上报修系统源码 编辑:程序博客网 时间:2024/06/05 11:15
解决方法:
ake sure your eclipse environment is using JUnit 4. JUnit 3 doesn't make use of annotations (it uses the oldextends TestCase
style)
There are few things to double check:
Window > Preferences > Java > JUnit
Are you seeing junit4
or junit3
imports? If that looks good, make sure the project itself is using JUnit4 instead of JUnit3.
Right Click on project > Properties > Java Build Path > Libraries
Is JUnit4 included there? Is anything JUnit related there? If JUnit3 is in there, click on it and clickRemove
. Then click Add Library...
and follow the prompts from there to add JUnit again.
mvn install
or whatever build target you have for Ant that'll run JUni- Robolectric_配置时cannot find class 'org.junit.Test' on project build path的问题
- Cannot find class 'org.junit.Test' on project build path
- 解决The project was not built since its build path is incomplete. Cannot find the class file的问题
- spring错误处理 Build path is incomplete. Cannot find class file for org.springframework.aop.Advisor
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- Cannot find the class file for java.lang.Object. Fix the build path then try building this project
- The project was not built since its build path is incomplete. Cannot find the class file for...
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- The project was not built since its build path is incomplete. Cannot find the class file for java.l
- Eclipse错误提示:The project was not built since its build path is incomplete. Cannot find the class file
- The project was not built since its build path is incomplete. Cannot find the class file for javax.s
- 错误提示: The project was not built since its build path is incomplete. Cannot find the class file for j
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- 解决maven项目中出Build path is incomplete. Cannot find class file for org/apache/ibatis/session/SqlSession
- The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build pat
- The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build pat
- Didn't find class "org.litepal.LitePalApplication" on path
- iOS开发:推送通知简述及开发实践
- SQL,PL/SQL 数据类型一览表
- Comsenz 核心产品 Discuz! X2.5 正式版.【更新于 20120518】
- 玩转电脑常识篇章一
- Ubuntu下更改gcc版本的简便方法
- Robolectric_配置时cannot find class 'org.junit.Test' on project build path的问题
- 通过jsonp调用wcf服务的例子
- Win7系统动不动访问不了window2003共享问题解决方法
- PHP之父评价Facebook的HipHop项目
- SVN与Git比较
- Java影响力远超想像--为什么要采用java这个平台
- Django源码解析(五) URL配置
- set define off 关闭替代变量功能
- JSP入门初级教程之JSP指令