Package java.util.prefs

Examples of java.util.prefs.NodeChangeEvent


    l.childAdded(new NodeChangeEvent(Preferences.userRoot(), Preferences
        .userRoot()));
  }

  public void testChildRemoved() {
    l.childRemoved(new NodeChangeEvent(Preferences.userRoot(), Preferences
        .userRoot()));
  }
View Full Code Here


    protected void tearDown() throws Exception {
        super.tearDown();
    }

    public void testChildAdded() {
        l.childAdded(new NodeChangeEvent(Preferences.userRoot(), Preferences
                .userRoot()));
    }
View Full Code Here

        l.childAdded(new NodeChangeEvent(Preferences.userRoot(), Preferences
                .userRoot()));
    }

    public void testChildRemoved() {
        l.childRemoved(new NodeChangeEvent(Preferences.userRoot(), Preferences
                .userRoot()));
    }
View Full Code Here

public class NodeChangeEventTest extends TestCase {

    NodeChangeEvent event;

    public void testConstructor() {
        event = new NodeChangeEvent(Preferences.systemRoot(), Preferences
                .userRoot());
        assertSame(Preferences.systemRoot(), event.getParent());
        assertSame(Preferences.userRoot(), event.getChild());
        assertSame(Preferences.systemRoot(), event.getSource());
    }
View Full Code Here

        assertSame(Preferences.systemRoot(), event.getSource());
    }

    public void testConstructorNullParam() {
        try {
            event = new NodeChangeEvent(null, Preferences.userRoot());
            fail();
        } catch (IllegalArgumentException e) {
        }

        event = new NodeChangeEvent(Preferences.systemRoot(), null);
        assertSame(Preferences.systemRoot(), event.getParent());
        assertNull(event.getChild());
        assertSame(Preferences.systemRoot(), event.getSource());
    }
View Full Code Here

        assertSame(Preferences.systemRoot(), event.getSource());
    }

    public void testSerialization() throws Exception {

        event = new NodeChangeEvent(Preferences.systemRoot(), null);

        try {
            SerializationTest.copySerializable(event);
            fail("No expected NotSerializableException");
        } catch (NotSerializableException e) {
View Full Code Here

TOP

Related Classes of java.util.prefs.NodeChangeEvent

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.