@Test public void testAfterInjection() throws Exception { DestroyableInjectionListener.DestroyableRegistry registry = createMock(DestroyableInjectionListener.DestroyableRegistry.class); Destroyable destroyable = createMock(Destroyable.class); registry.add(destroyable); replay(registry, destroyable); DestroyableInjectionListener underTest = new DestroyableInjectionListener(registry); underTest.afterInjection(destroyable); verify(registry, destroyable); }
public void afterInjection(Destroyable injectee) { registry.add(injectee); }
DestroyableInjectionListener implements InjectionListener<I> { public void afterInjection(Destroyable injectee) { registry.add(injectee); } }
DestroyableInjectionListener implements InjectionListener<I> { public void afterInjection(Destroyable injectee) { registry.add(injectee); } DestroyableInjectionListener(DestroyableRegistry registry); }
DestroyableInjectionListener implements InjectionListener<I> { public void afterInjection(Destroyable injectee) { registry.add(injectee); } DestroyableInjectionListener(DestroyableRegistry registry); void afterInjection(Destroyable injectee); }
DestroyableInjectionListener implements InjectionListener<I> { public void afterInjection(Destroyable injectee) { registry.add(injectee); } DestroyableInjectionListener(DestroyableRegistry registry); void afterInjection(Destroyable injectee); static final Matcher<TypeLiteral> MATCHER; }