Android Kotlin: integration tests using Dagger 2 and Mockito getting error, “zero interactions with this mock”
问题 I am developing an Android application using Kotlin. I am writing integration tests for my application. Now I am having a problem mocking an injected dependency class that is injected using the Dagger 2 test if a method of the mocked object is called. Following is my code. I have the TestAppComponent class with the following code @Singleton @Component(modules = [ TestAppModule::class ]) interface TestAppComponent { fun inject(app: ApplicationController) fun inject(app: