mocking De-mock your tests: practical recipes 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 in Kotlin with Mockito? Mockito cannot mock/spy because your class is final class? We can fix that.
mocking Mocking and stubbing suspend functions with MockK How to easily stub or mock suspend function in Kotlin? MockK is the solution. See MockK examples for mocking coroutines.