I have spyk
from mockk
library:
my = spyk(My())
later I am mocking one of the method to return something like:
every { my.method("someString") } returns something
I'm creating this spyk
in a @BeforeAll
method and I'm reusing it a few times but, sometimes I need to call real my.method("someString")
instead of mocked version, but this every{}
mocked it everywhere.
How to force my
to call real method in some cases? Is there any possibility to do that?