Package org.impalaframework.web.spring.module

Examples of org.impalaframework.web.spring.module.WebModuleLoader


import org.springframework.util.ClassUtils;

public class WebModuleLoaderTest extends TestCase {

    public final void testGetSpringConfigResources() throws IOException {
        WebModuleLoader moduleLoader = new WebModuleLoader();
        Resource[] springConfigResources = moduleLoader.getSpringConfigResources("id", new SimpleModuleDefinition(null, "plugin1", new String[]{"parentTestContext.xml"}), ClassUtils.getDefaultClassLoader());
   
        assertEquals(1, springConfigResources.length);
        Resource resource = springConfigResources[0];
        assertTrue(resource instanceof ClassPathResource);
        assertEquals("class path resource [parentTestContext.xml]", resource.getDescription());
View Full Code Here

TOP

Related Classes of org.impalaframework.web.spring.module.WebModuleLoader

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.