Hi everyone! anyone knows if it is possible to moc...
# android
c
Hi everyone! anyone knows if it is possible to mock a kotlin function with mockito?
a
why not?
s
Since Kotlin classes and functions are closed by default and Mockito uses inheritance to mock and stub. However, there are ways to make it work. You might want to have a look at mockito-kotlin: https://github.com/nhaarman/mockito-kotlin
c
@sindrenm thank you a lot!! 🤓
Hi @Alexander Khyzhun, I was asking if it is possible
@Alexander Khyzhun, if you have the answer, please could you share it?
r
I am using mockito. And have no problem with it.