I don't know whether Kotlin is converting anything...
# android
m
I don't know whether Kotlin is converting anything internally, any help would be great.
s
mithuroy: By default classes in Kotlin are final. Mark the classes open if you want to achieve this. You can read about this in “https://kotlinlang.org/docs/reference/classes.html” under open class
p
@mithuroy You can use mockito 2.0 to achieve this. Here is the documentation https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2#unmockable and here a nice article about new features in mockito-2 that can be applied to android https://jeroenmols.com/blog/2017/01/17/mockitoandroid/
m
Thanks a lot