Code example for AbstractPreferences

Methods: nodeExistsremoveNode

0
 
    public void test_nodeExists() throws BackingStoreException { 
        AbstractPreferences test = (AbstractPreferences) Preferences.userRoot()
                .node("test");
        try { 
            test.nodeExists(null);
            fail("should throw NullPointerException");
        } catch (NullPointerException e) {
            // Expected 
        } 
 
        test.removeNode();
        try { 
            test.nodeExists(null);
            fail("should throw NullPointerException");
        } catch (NullPointerException e) {
            // Expected 
        } 
    } 
 
Connect your IDE to all the code out there  Get Codota for Java