JMockit 和 junit 使用出现异常 JMockit wasn't properly initialized 解决

java.lang.IllegalStateException: JMockit wasn’t properly initialized; check that jmockit.jar precedes junit.jar in the classpath (if using JUnit; if not, check the documentation)

http://www.mamicode.com/info-detail-181493.html 方法二可以解决问题

你可能感兴趣的:(单元测试)