Package org.opentripplanner.updater

Examples of org.opentripplanner.updater.PropertiesPreferences.childrenNames()


        assertEquals(-1, prefs1.getLong("pd", -1));
        assertEquals("é", prefs1.get("pe", null));

        Preferences prefs2 = new PropertiesPreferences(
                makeInput("pa=1\na.pb=2\na.b.pc=3\na.b2.pd=uvw\nb.pe=42"));
        String[] children = prefs2.childrenNames();
        Arrays.sort(children);
        assertEquals("a", children[0]);
        assertEquals("b", children[1]);
        assertEquals(1, prefs2.getLong("pa", 0));
        assertEquals(2, prefs2.node("a").getLong("pb", 0));
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.