PowerMockito使用示例
1.mock私有函数或者静态私有函数public class User{ private String getUser(String id){ return "abc"; }}@RunWith(PowerMockRunner.class)public class Test1{ @Mock User user; @Test private String test(){ Method method = PowerMockito.method(User.class, "