has anybody got a good description of how mockito ...
# coroutines
g
has anybody got a good description of how mockito (and or some nice extension for it) can/should/will handle mocking `suspend fun`s? I remember mockito 1.X (1.95?) simply wouldn't, but now I notice that I've got 2.23 on my classpath. Does that automagically handle mocking suspend-funs for me?
s
It should be able to handle them. Not sure how, though. For Kotlin-only projects, we moved to use MockK instead of Mockito. Dealing with suspend funs is easy there (since the MockK is specifically designed for Kotlin).
b
+1 for MockK
m
+2 for Mockk
g
I'm trying to reduce the amount of mocking we do, not add more mocking libs..
s
We’re not advocating for adding one. We’re advocating for replacing one 😄
☝️ 8
m
If you want to reduce your mocking code, mockk is the right way to go
c
mockk is great but recent mockito version can mock suspend functions fine.