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 
        } 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE