简体   繁体   English

如何在 jmockit 1.48 中测试/模拟私有方法?

[英]How to test/mock private method in jmockit 1.48?

How to test/mock private method in jmockit 1.48?如何在 jmockit 1.48 中测试/模拟私有方法? I have seen there are many options like Deencapsulation was available in previews versions but can t see anything in 1.48我看到有很多选项,例如预览版本中提供了解封装,但在 1.48 中看不到任何内容

私有方法模拟(使用@Mocked)自 JMockit 1.23 起已停止使用,并且在 1.27 版中使用 MockUp 时将受到限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM