Package org.impalaframework.web.spring.loader

Examples of org.impalaframework.web.spring.loader.ConfigurableWebXmlBasedContextLoader


  private ServletContext servletContext;

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    contextLoader = new ConfigurableWebXmlBasedContextLoader();
    servletContext = createMock(ServletContext.class);
  }
View Full Code Here


    expect(servletContext.getInitParameter(LocationConstants.BOOTSTRAP_MODULES_RESOURCE_PARAM)).andReturn("org/impalaframework/web/module/plugin_locations.properties");
    servletContext.setAttribute(eq(WebConstants.IMPALA_FACTORY_ATTRIBUTE), isA(ModuleManagementFacade.class));    servletContext.setAttribute(eq(WebConstants.MODULE_DEFINITION_SOURCE_ATTRIBUTE), isA(SingleStringModuleDefinitionSource.class));
   
    replay(servletContext);

    ConfigurableWebXmlBasedContextLoader loader = new ConfigurableWebXmlBasedContextLoader();
    WebApplicationContext context = loader.createWebApplicationContext(servletContext, null);
   
    assertNotNull(context);
    assertTrue(context instanceof GenericWebApplicationContext);
    verify(servletContext);
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.web.spring.loader.ConfigurableWebXmlBasedContextLoader

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.