我想测试我的@EBean注释类:
public class ApiTests extends AndroidTestCase {
private Api mApi;
@Override
protected void setUp() throws Exception {
super.setUp();
mApi = Api_.getInstance_(getContext());
}
}但是我得到了编译器错误:
Warning:java: /Users/*****/api/Api.class: warning: Cannot find annotation method 'scope()' in type 'org.androidannotations.annotations.EBean': class file for org.androidannotations.annotations.EBean not foundIDE (IntelliJ IDEA)没有显示任何导入错误。我该怎么测试呢?
发布于 2014-06-11 09:00:31
解决了。API库应该作为“编译”添加到主项目中,并作为“提供”添加到测试项目中。
https://stackoverflow.com/questions/24137046
复制相似问题