Category "mockk"

Mocking internal function call in Kotlin

I am a complete beginner in terms of Kotlin and I am finding some issues while trying to test out a Ktor based application. I have a file in my endpoints packag

MockK - reinitialize mocks for each test

I have some mocks created using: val someService = mockk<SomeService>(relaxed = true) There are multiple tests in the file and I want the mock to be rese

MockK "io.mockk.MockKException: no answer found for:" error

Hi i am trying to mock the response i get from a Single observable that gets returned from retrofit using a delegator that my presenter class calls and i am get