Bug 147530 [DataBinding] Provide event objects for change listeners
Before data binding goes 1.0 it would be wise to provide EventObjects for the following listeners to ensure that the API doesn't preclude future expansion of the values supplied to listeners. Interfaces that would be affected: * IValueChangeListener * IValueChangingListener * IListChangeListener * ISetChangeListener * IMappingChangeListener
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/ObservableTest.java
this.source = source;
        }        
    }
    
	/*
	 * Test method for
	 * 'org.eclipse.jface.databinding.Observable.addChangeListener(IChangeListener)'
	 */
	public void testFireChangeListener() {
        ChangeListener listener = new ChangeListener();
        observable.addChangeListener(listener);
        assertEquals("listener should not have been invoked", 0, listener.count);
        
        observable.fireChange(null, null);
        assertEquals("listener should have been invoked", 1, listener.count);
	}
	/*
	 * Test method for
	 * 'org.eclipse.jface.databinding.Observable.removeChangeListener(IChangeListener)'
	 */
	public void testRemoveChangeListener() {
        ChangeListener listener = new ChangeListener();
        observable.addChangeListener(listener);
        
        observable.removeChangeListener(listener);
        observable.fireChange(null, null);        
        assertEquals("the listener should have been removed", 0, listener.count);
	}
}