Package com.google.inject.spi

Examples of com.google.inject.spi.TypeEncounter


import static org.easymock.EasyMock.*;

public class LifecycleTypeListenerTest {
    @Test
    public void testHearInitializable() throws Exception {
        TypeEncounter encounter = createMock(TypeEncounter.class);

        encounter.register(anyObject(InitializableInjectionListener.class));

        replay(encounter);

        LifecycleTypeListener underTest = new LifecycleTypeListener(null);

View Full Code Here


        verify(encounter);
    }

    @Test
    public void testHearDestroyable() throws Exception {
        TypeEncounter encounter = createMock(TypeEncounter.class);

        encounter.register(anyObject(DestroyableInjectionListener.class));

        replay(encounter);

        LifecycleTypeListener underTest = new LifecycleTypeListener(null);
View Full Code Here

TOP

Related Classes of com.google.inject.spi.TypeEncounter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.