1. 首页
  2. 移动开发
  3. 其他
  4. Android代码 A JUnit rule to easily override Dagger 2 objects

Android代码 A JUnit rule to easily override Dagger 2 objects

上传者: 2020-08-22 17:59:12上传 ZIP文件 520.68KB 热度 17次
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
下载地址
用户评论