ITeye博客

WARNING: JMockit was initialized on demand, which may cause certain tests to fai

zerostar88 · 2013-08-05 09:04 · Java · 编程语言 · Markdown

When we using Jmokit and Junit, it will show following warning when runing test cases in Eclipse:

 

WARNING: JMockit was initialized on demand, which may cause certain tests to fail;
please check the documentation for better ways to get it initialized.

 

Solution:

Add following in JVM arguments

-javaagent:{Jmokit file location}/jmockit-0.999.19.jar

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。