Code example for PropertyChangeListenerProxy

Methods: propertyChange

0
 
    /** 
     * Regression for HARMONY-407 
     */ 
    public void testPropertyChange_PropertyChangeEvent() { 
        PropertyChangeListenerProxy proxy = new PropertyChangeListenerProxy(
                "harmony", null); 
        try { 
            proxy.propertyChange(null);
            fail("NullPointerException expected");
        } catch (NullPointerException e) {
        } 
    } 
 
    public static class MockPropertyChangeListener implements 
            PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent newevent) {
            event = newevent;
        } 
    }