Examples of AlwaysDevelopmentEnvironmentResolver


Examples of org.constretto.spring.assembly.helper.AlwaysDevelopmentEnvironmentResolver

    @Test
    public void givenClassWithEnvironmentAnnotatedPropertyThenInjectEnvironment() throws Exception {
        TestClazz testClazz = new TestClazz();
        ConfigurationAnnotationConfigurer annotationConfigurer = new ConfigurationAnnotationConfigurer(
                new DefaultConstrettoConfiguration(null), new AlwaysDevelopmentEnvironmentResolver());
        annotationConfigurer.postProcessAfterInstantiation(testClazz, "testBean");
        Assert.assertTrue(testClazz.getEnvironments().contains("development"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.