Hi there! Anyone has tried Kotlin with mockito? I ...
# test
k
Hi there! Anyone has tried Kotlin with mockito? I called verify method on a mocked object. But it invokes the implementation then I got error. Any suggestion? Thank you
d
@khanhbkqt You’ll need to make sure the class you’re mocking is
open
, and any of its functions that you invoke during the test will also need to be marked
open
. If you don’t, the result is that your actual implementation gets called.
k
Thank you, I solved my problem