There's a very nice mocking library for Kotlin - Mockk, which allows you to mock objects, the exact same way you're desiring. As of its documentation: ...
確定! 回上一頁