Skip to content Skip to sidebar Skip to footer
Showing posts with the label Mockito

How To Correctly Mock Viewmodel On Androidtest

I'm currently writing some UI unit tests for a fragment, and one of these @Test is to see if a … Read more How To Correctly Mock Viewmodel On Androidtest

How To/should I Unit Test Eventbus Events With Mockito?

I use Otto's EventBus in my Android app. In my LoginNetworkOperation class, I catch different k… Read more How To/should I Unit Test Eventbus Events With Mockito?

Need Help To Write A Unit Test Using Mockito And Junit4

Need help to write a unit test for the below code using Mockito and JUnit4, public class MyFragment… Read more Need Help To Write A Unit Test Using Mockito And Junit4