Can anyone point me to an example of mocking Android components with MockK? I’ve asked on <#C9EJFT6D...
e
Can anyone point me to an example of mocking Android components with MockK? I’ve asked on #mockk but gotten no responses.
t
You may only be able to mockk interfaces such as
SharedPreferences
. I think it would be easier to use Robolectric Shadows.