当使用PowerMockito.whenNew方法时,必须加注解@PrepareForTest和@RunWith。 * 注解@PrepareForTest里写的类是需要mock的new对象代码所在的类* * PrepareForTest 可以 ...
確定! 回上一頁