Is there an equivalent to Mockito's `stubOnly` (<h...
# mockk
b
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.