Exemple #1
0
 @Test
 public void subcomponentIndirectionCycle() {
   ChildCycleComponent childCycleComponent = DaggerCycles_CycleComponent.create().child();
   A a = childCycleComponent.a();
   assertThat(a.b.c.aProvider.get()).isNotNull();
   assertThat(a.e.d.b.c.aProvider.get()).isNotNull();
 }
Exemple #2
0
 @Test
 public void lazyIndirectionCycle() {
   CycleComponent cycleComponent = DaggerCycles_CycleComponent.create();
   A a = cycleComponent.a();
   C c = cycleComponent.c();
   assertThat(c.aLazy.get()).isNotNull();
   assertThat(a.b.c.aLazy.get()).isNotNull();
   assertThat(a.e.d.b.c.aLazy.get()).isNotNull();
 }