https://kotlinlang.org logo
#mockk
Title
# mockk
b

bbaldino

07/25/2022, 6:25 PM
i've got a mockk for a suspend method like this:
Copy code
coEvery { myClass.myMethod(any(), any()) } returns myFakeResponse()
and i'm hitting:
Copy code
java.lang.NullPointerException
	at io.mockk.impl.recording.states.RecordingState.matcher(RecordingState.kt:53)
	at io.mockk.impl.recording.CommonCallRecorder.matcher(CommonCallRecorder.kt:52)
has anyone run into this before?
Sorry, actually I just noticed the error is stemming from the
coVerify
call:
Copy code
coVerify(exactly = 1) { myClass.myMethod(any(), any()) }
63 Views