为什么我们会收到错误“由于缺少依赖项而无法模拟类*"? [英] Why we get error "Unable to mock class * due to missing dependency"?
本文介绍了为什么我们会收到错误“由于缺少依赖项而无法模拟类*"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当在Jenkins上运行maven项目时,为什么在测试用例中出现错误由于缺少依赖项而无法模拟类*"?
Why we get error "Unable to mock class * due to missing dependency" in test case when a maven project runs on Jenkins?
推荐答案
当我将JMockit版本从1.7更新到1.11时,此错误已解决.
This error is resolved when I updated JMockit version from 1.7 to 1.11.
这篇关于为什么我们会收到错误“由于缺少依赖项而无法模拟类*"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文