简答mock方法和spy方法都可以对对象进行mock。但是前者是接管了对象的全部方法, ... difference between doReturn and when. when(...) thenReturn(.
確定! 回上一頁