@Test public void testSetupAndDestroy() { verifyStatic(); Toothpick.openScope(okuki); verify(rootScope).installModules(isA(RootModule.class)); verify(okuki).addGlobalListener(placeScoper); placeScoper.close(); verifyStatic(); Toothpick.closeScope(okuki); verify(okuki).removeGlobalListener(placeScoper); }
public void close() { okuki.removeGlobalListener(this); Toothpick.closeScope(okuki); }
PlaceScoper extends GlobalListener { public void close() { okuki.removeGlobalListener(this); Toothpick.closeScope(okuki); } }
PlaceScoper extends GlobalListener { public void close() { okuki.removeGlobalListener(this); Toothpick.closeScope(okuki); } PlaceScoper(Okuki okuki, Module... rootModules); }
PlaceScoper extends GlobalListener { public void close() { okuki.removeGlobalListener(this); Toothpick.closeScope(okuki); } PlaceScoper(Okuki okuki, Module... rootModules); void close(); void inject(Object obj); T getInstance(Class<T> clazz); @Override void onPlace(Place place); }
PlaceScoper extends GlobalListener { public void close() { okuki.removeGlobalListener(this); Toothpick.closeScope(okuki); } PlaceScoper(Okuki okuki, Module... rootModules); void close(); void inject(Object obj); T getInstance(Class<T> clazz); @Override void onPlace(Place place);  }