使用PowerMockito.whenNew()不会被模拟并调用原始方法. 我有一个类似下面的代码: Class A { public boolean myMethod(someargs) { MyQueryClass query = new ...
確定! 回上一頁