How to mock Dagger activity object graphs?

后端 未结 1 1257
礼貌的吻别
礼貌的吻别 2021-01-06 03:04

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 wi

1条回答
  •  囚心锁ツ
    2021-01-06 03:21

    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

    0 讨论(0)
提交回复
热议问题