Mockito 提供了簡單的 mock 函式,只要把目標class 丟進去,就可以得到一個假的目標物件。 val loginService = Mockito.mock(ILoginService::class.java).
確定! 回上一頁