Mockk is a free, open source mocking framework for Kotlin programming language.
Hi i am trying to mock the response i get from a Single observable that gets returned from retrofit using …
unit-testing kotlin kotlin-android-extensions mockkWe are currently working with java with kotlin project, slowly migrating the whole code to the latter. Is it possible …
java unit-testing static kotlin mockkI'm trying to mock an Android Context to return a string from a resource id. However I have trouble matching …
android kotlin mockkI know that in order to mock how a method responds, you have to use every { instanceX.methodB() } returns "42" I'm …
unit-testing kotlin mockkI have some mocks created using: val someService = mockk<SomeService>(relaxed = true) There are multiple tests in the …
mockkusing mockk for testing kotlin function. private val serviceObject = mockk<Service>() private val serviceToBeTested = ServiceToBeTestd(Service) fun test(){ …
kotlin mockkI already read some issues with this or a similar error message (it is also ocurring for every {}), but none …
android unit-testing kotlin android-testing mockkI create a mock of a class with mockk. On this mock I now call a method that gets a …
kotlin mocking mockkMockk allows mocking static functions, but how does one mock a Kotlin top level function? For example, if I have …
kotlin mockk