Android testing using Dagger 2, Mockito and a custom JUnit rule
Fabio Collini
38414

Ciao Fabio,
My problems are the dependencies of a Mock Object provided by Dagger2.
An Example:
I have an homePresenter having a dependency with a dataStore.
When i mock the homePresenter in the HomeActivity his datastore dependency is still provided by dagger and i’m not able to mock it.
Is there a way using your library to mock the dependency of a mock?
On top of it i have different components already : Application,Activity and fragment component to have different scopes…

Thanks and nice post!

Show your support

Clapping shows how much you appreciated Salvatore La Fiura’s story.