Join Slack
Is there an equivalent to Mockito's `stubOnly` (<https://site.mockito.org/javadoc/current/org/mockit...
# mockk
b
bbaldino
08/13/2020, 5:30 AM
Is there an equivalent to Mockito's
stubOnly
(
https://site.mockito.org/javadoc/current/org/mockito/MockSettings.html#stubOnly()
) in mockk? I'm using a spy to make a fake ExecutorService, but the calls to
captureStackTrace
are killing the performance of the test. I had the same problem in Mockito until I found
stubOnly
, but was hoping to migrate it over to mockk.
5
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by