This is my code snippet:
@Test
fun `request should return anon id if query param present`(@MockK(relaxed = true) req: ServerRequest)
I'm using JUnit5(Jupiter). The exception I've got is:
io.mockk.MockKException: no answer found for: ServerRequest(#1).cookies()
This is weird because if I understood relaxed
correctly, my instance of ServerRequest should always have some value.
Why doesn't it in my case?