Package com.netflix.governator.guice

Examples of com.netflix.governator.guice.LifecycleInjectorBuilder


        }
    }
   
    @Test
    public void testServiceLoadedModules() {
        LifecycleInjectorBuilder builder = LifecycleInjector.builder();
        builder.withAdditionalBootstrapModules(new ServiceLoaderBootstrapModule());
       
        Injector injector = builder.build().createInjector();
        Assert.assertEquals("loaded",  injector.getInstance(Key.get(String.class, Names.named(MyServiceLoadedModule.class.getSimpleName()))));
    }
View Full Code Here


    /**
     * Test the beforeInjectorCreation method.
     */
    @Test
    public void testBeforeInjectorCreation() {
        final LifecycleInjectorBuilder builder = Mockito.mock(LifecycleInjectorBuilder.class);
        this.genieGuiceBootstrap.beforeInjectorCreation(builder);
        Mockito.verify(builder, Mockito.never())
                .withAdditionalModules(Mockito.any(Module.class));
    }
View Full Code Here

TOP

Related Classes of com.netflix.governator.guice.LifecycleInjectorBuilder

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.