WARNING: JMockit was initialized on demand, which may cause certain tests to fail; please check the documentation for better ways to get it initialized.admin管理员组文章数量:1558099
调整jmockit和junit在classpath中的顺序
<!-- JMockit must be before JUnit in the classpath -->
<dependency>
<groupId> com.googlecode.jmockit</groupId >
<artifactId> jmockit</artifactId >
<version>1.0</version>
<scope> test</scope >
</dependency>
<!-- Junit -->
<dependency>
<groupId> junit</groupId >
<artifactId> junit</artifactId >
<version>4.10</version>
<scope> test</scope >
</dependency>
<dependency>
<groupId> org.hamcrest</groupId >
<artifactId> hamcrest-all </artifactId>
<version> 1.1</version >
<scope> test</scope >
</dependency>
new MockUp<Class>(){
@Mock
method(){}
}
jmocket官方地址
https://code.google/p/jmockit/
参考文章
http://www.haogongju/art/1763416
http://wenku.baidu/view/d0c866de6f1aff00bed51eda.html
本文标签: JMockitwarningjmocketTestdemand
版权声明:本文标题:jmocket之WARNING: JMockit was initialized on demand, which may cause certain test 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1727340835a1109388.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论