mocking De-mock your tests: practical recipes How to mock without framework? Examples of de-mocking test code as presented on Droidcon Berlin 2022.
mocking Stubbing with doAnswer vs doReturn – what's the difference? Most of the times while stubbing with Mockito or MockK you will use doReturn construction. But do you know, that you can stub your test double method in other way – with doAnswer. Let's take a look a both stubbing types.
mockito How to mock final classes with Mockito? (Kotlin & Java) Mockito cannot mock/spy because your class is final class? Here's solution with using MockMacker.
mocking How to use MockK in Kotlin? Stubbing and Mocking coroutines made easy. How to mock suspend function in Kotlin? MockK is the solution. Code examples for coEvery, coAnswers, coReturns