Code example for AbstractPreferences

Methods: absolutePath, node

0
        assertFalse(first.name().compareTo("Second node") == 0);
        assertTrue(second.name().compareTo("sub node") == 0);
    } 
 
    public void testAbsolutePath() { 
        assertEquals(parent.absolutePath() + "/" + nodeName, pref.absolutePath());
        assertEquals(parent.absolutePath() + "/" + "new node", parent.node("new node").absolutePath());
    } 
 
    public void testIsUserNode() { 
        assertTrue(parent.isUserNode());
        assertFalse(Preferences.systemRoot().isUserNode());
    } 
 
    public void testSync() throws BackingStoreException { 
        pref.node("new node/sub node");
        pref.sync();
 
        pref.removeNode();
 
        try {