首页
标签
mockstatic
Mockito 3.6:在 JUnit4 的@Before 或@BeforeClass 中使用 mockStatic
UUID.getRandom 的 Powermock、mockStatic 在测试 class 中有效,但在 class 测试中无效
IllegalStateException 抱怨 PowerMockRule 由 powermock 类加载器而不是系统类加载器加载
当 class 的静态方法 return 与 class 的对象相同时,PowerMock 抛出 initialzationError