简体   繁体   English

Powermock 与 Guidewire 的集成

[英]Powermock integration with Guidewire

Anyone has successfully integrated powermock with Guidewire unit tests?有人成功地将 powermock 与 Guidewire 单元测试集成在一起吗? I'm interrested to know what works and what doesn't.我很想知道什么有效,什么无效。

Gosu has own classloader, and PowerMock also, i think that is the main reason that dont works correctly. Gosu 有自己的类加载器,还有 PowerMock,我认为这是无法正常工作的主要原因。 In my project we use Mockito, dont have static support but it works for the most common unit testing cases.在我的项目中,我们使用 Mockito,没有静态支持,但它适用于最常见的单元测试案例。 Also i built a TestBase that allow make entities instances with RunLevel NONE and other utilities.我还构建了一个 TestBase,允许使用 RunLevel NONE 和其他实用程序创建实体实例。

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

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