Package org.mojavemvc.tests.modules

Examples of org.mojavemvc.tests.modules.SomeModule


    }
   
    @Test
    public void injectorHasBasicAndCustomModuleBindings() throws Exception {

        Injector injector = initializeInjector(new SomeModule());

        Map<Key<?>, Binding<?>> bindings = injector.getAllBindings();

        assertBindingExistsFor(HttpServletRequest.class, bindings);
        assertBindingExistsFor(HttpServletResponse.class, bindings);
View Full Code Here


        when(req.getInputStream()).thenReturn(null);
        res = mock(HttpServletResponse.class);
        appProperties = mock(AppProperties.class);

        injector = Guice.createInjector(
                new ServletResourceModule(appProperties), new SomeModule());
        ServletResourceModule.set(req, res);

        routed = new RoutedRequest(null, null, parametersMap);
    }
View Full Code Here

TOP

Related Classes of org.mojavemvc.tests.modules.SomeModule

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.