Code example for PreferenceChangeEvent

0
 
    /* 
     * @see TestCase#setUp() 
     */ 
    @Override 
    protected void setUp() throws Exception { 
        super.setUp(); 
        l = new PreferenceChangeListenerImpl();
    } 
 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "Testing Interface", 
        method = "preferenceChange", 
        args = {java.util.prefs.PreferenceChangeEvent.class}
    ) 
    public void testPreferenceChange() { 
        l.preferenceChange(new PreferenceChangeEvent(Preferences.userRoot(),
                "", "")); 
    }