Using mockito-kotlin like this seems to work: val myService = mock<MyInterface>() myService.doSomething { println(it) } verify(myService).
確定! 回上一頁