如何测试静态方法?

可以使用 PowerMock 库来测试静态方法

原文地址:https://www.cnblogs.com/programb/p/13018952.html