Package org.constretto

Examples of org.constretto.ConstrettoBuilder


    ConstrettoConfiguration config;

    @Before
    public void before() {
        config = new ConstrettoBuilder()
                .createPropertiesStore()
                .addResource(Resource.create("classpath:subClassData.properties"))
                .done()
                .getConfiguration();
    }
View Full Code Here


        setProperty("password", "password");
        setProperty("vendor", "derby");
        setProperty("version", "10");
        setProperty("array", "[\"one\",\"two\",\"three\"]");
        setProperty("map", "{\"1\":\"10\",\"2\":\"20\"}");
        configuration = new ConstrettoBuilder().createSystemPropertiesStore().getConfiguration();

    }
View Full Code Here

*/
public class DefaultValuesInAnnotationsTest {

    @Test
    public void defaultValuesShouldNotBeContagious() {
        ConstrettoConfiguration configuration = new ConstrettoBuilder().getConfiguration();
        ContagiousConfigurationMethod testObject = configuration.as(ContagiousConfigurationMethod.class);
        assertEquals("default-value", testObject.valueWithDefault());
        assertEquals(null, testObject.missingValue());
        assertEquals(null, testObject.otherMissingValue());
    }
View Full Code Here

TOP

Related Classes of org.constretto.ConstrettoBuilder

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.