https://kotlinlang.org logo
#android
Title
# android
m

mithuroy

06/25/2017, 5:32 AM
I don't know whether Kotlin is converting anything internally, any help would be great.
s

senthilkumarv

06/25/2017, 9:45 AM
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

pjanowiak

06/25/2017, 10:23 AM
@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

mithuroy

06/26/2017, 11:59 AM
Thanks a lot
3 Views