Skip to content Skip to sidebar Skip to footer

How To Mock Dagger Activity Object Graphs?

I'm using Dagger in an android app to provide application and activity scope graphs. And I'm using Robolectric for unit-testing. I know that I can provide Robolectric with a subs

Solution 1:

Please take a look to my project - https://github.com/emartynov/UrlSetter

You will find how I managed to use mocks with Dagger in Robolectric tests

Post a Comment for "How To Mock Dagger Activity Object Graphs?"