Create a method that returns already built component, then inject this component into onCreate().
UI Testing on Android with Dagger, Espresso and Mockito.
Piotr Mądry

I found it useful to return component builder instead of already created component. Then in TestApp I can provide only fake modules and I don’t have to remember about providing all real modules in TestApp.

It looks more or less like this

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.