Examples of ConstrettoBuilder


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

Examples of org.constretto.ConstrettoBuilder

        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

Examples of org.constretto.ConstrettoBuilder

*/
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
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.