Package org.impalaframework.bootstrap

Examples of org.impalaframework.bootstrap.ContextLocationResolver


        assertTrue(propertySources.get(2) instanceof StaticPropertiesPropertySource);
        assertTrue(propertySources.get(3) instanceof ServletContextPropertySource);
    }
   
    public void testAddLocations() throws Exception {
        final ContextLocationResolver resolverDelegate = createMock(ContextLocationResolver.class);
        final PropertySource source = createMock(PropertySource.class);
       
        ServletContextLocationsRetriever resolver = new ServletContextLocationsRetriever(servletContext, resolverDelegate, propertiesLoader) {

            @Override
            protected Properties getProperties() {
                return new Properties();
            }

            @Override
            protected List<PropertySource> getPropertySources(Properties properties) {
                return Collections.singletonList(source);
            }
        };
       
        expect(resolverDelegate.addContextLocations(isA(ConfigurationSettings.class), isA(CompositePropertySource.class))).andReturn(false);
       
        replay(resolverDelegate, source);
       
        resolver.getContextLocations();
       
View Full Code Here


    protected String getContextLocationResolverClassName() {
        return SimpleContextLocationResolver.class.getName();
    }

    private ContextLocationResolver getContextLocationResolver(String className) {
        ContextLocationResolver c = InstantiationUtils.instantiate(className);
       
        logger.info("Using " + ContextLocationResolver.class.getSimpleName() + ": " + c.getClass().getName());
        return c;
    }
View Full Code Here

    protected String getContextLocationResolverClassName() {
        return SimpleContextLocationResolver.class.getName();
    }

    private ContextLocationResolver getContextLocationResolver(String className) {
        ContextLocationResolver c = InstantiationUtils.instantiate(className);
       
        logger.info("Using " + ContextLocationResolver.class.getSimpleName() + ": " + c.getClass().getName());
        return c;
    }
View Full Code Here

  protected String getContextLocationResolverClassName() {
    return SimpleContextLocationResolver.class.getName();
  }

  private ContextLocationResolver getContextLocationResolver(String className) {
    ContextLocationResolver c = InstantiationUtils.instantiate(className);
   
    logger.info("Using " + ContextLocationResolver.class.getSimpleName() + ": " + c.getClass().getName());
    return c;
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.bootstrap.ContextLocationResolver

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.