I'd sugest using <#C9EJFT6DB|mockk> instead of moc...
# android
l
I'd sugest using #mockk instead of mockito-kotlin
3
g
any good links to a step-by-step comparison with mockito?
2
l
I don't think there's a big comparison with mockito. You can check some of the documentation at mockk.io
From my experience, coming from a Java/Mockito background, I don't want to not use Mockk ever again.
IMO, it's way simpler than Mockito, while also being more powerful, and funnier to write. I don't feel the hassle I usually feel with Mockito
g
the dsl is almost the same... most of the time I hear "because it's written in Kotlin", but that tells jack shit about the quality of the library simple smile . The api was a subject to change last time I've tried it and java interop was buggy, probably much more stable now.
l
I don't think it's only because "It's written in Kotlin". More because it's more compatible with Kotlin than Mockito-Kotlin. Code is easier to write, and it's more powerful. That's why I chose to use it