Package org.impalaframework.spring.module

Examples of org.impalaframework.spring.module.DefaultSpringRuntimeModule


        verifyMocks();
    }

    private DefaultSpringRuntimeModule springRuntimeModule(
            ConfigurableApplicationContext applicationContext) {
        DefaultSpringRuntimeModule springRuntimeModule = new DefaultSpringRuntimeModule(new SimpleModuleDefinition(""), applicationContext);
        return springRuntimeModule;
    }
View Full Code Here


    Resource[] resources1 = new Resource[]{ new FileSystemResource("r1")};
    Resource[] resources2 = new Resource[]{ new FileSystemResource("r1"), new FileSystemResource("r2")};
    Resource[] resources3 = new Resource[]{ new FileSystemResource("r2")};

    expect(moduleStateHolder.getRootModule()).andReturn(new DefaultSpringRuntimeModule(new SimpleModuleDefinition("newlocation"), context));
    expect(moduleStateHolder.getRootModuleDefinition()).andReturn(originalSpec);
    expect(moduleLoader.newBeanDefinitionReader("id", context, newSpec)).andReturn(beanDefinitionReader);
    expect(context.getClassLoader()).andReturn(classLoader);
    expect(moduleLoader.getSpringConfigResources("id", originalSpec, classLoader)).andReturn(resources1);
    expect(moduleLoader.getSpringConfigResources("id", newSpec, classLoader)).andReturn(resources2);
View Full Code Here

TOP

Related Classes of org.impalaframework.spring.module.DefaultSpringRuntimeModule

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.