Android代码 A JUnit rule to easily override Dagger 2 objects
DaggerMock A JUnit rule to easily override Dagger 2 objects More info about testing using Dagger 2 and Mockito are available in this Medium post. Overriding an object managed by Dagger 2 is not easy, you need to define a TestModule and, if you want to inject your test object, a TestComponent. Us
下载地址
用户评论