Package org.constretto

Examples of org.constretto.Property


    public Iterator<Property> iterator() {
        List<Property> properties = new ArrayList<Property>();
        Map<String, String> map = asMap();
        for (Map.Entry<String, String> entry : map.entrySet()) {
            properties.add(new Property(entry.getKey(), entry.getValue()));
        }
        return properties.iterator();
    }
View Full Code Here


    }

    @Test
    public void configurationIterator(){
        List<Property> expected = new ArrayList<Property>(){{
            add(new Property("somedb.username","user1"));
            add(new Property("datasources.customer.password","password"));
            add(new Property("url.child","http://constretto.org/child"));
            add(new Property("base-url","http://constretto.org"));
        }};

        List<Property> actual = new ArrayList<Property>();
        for (Property property : constrettoConfiguration) {
            actual.add(property);
View Full Code Here

TOP

Related Classes of org.constretto.Property

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.