Bug 205248 [Databinding] Observables on Text with FOCUS_OUT event incorrectly notify with no change
If you get an observable on a Text for the FOCUS_OUT event, the model is updated every time, even if there is no change in the value. The observable should not trigger a model change if the Text value is the same as the model value.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/swt/TextObservableValueTest.java
String b = "b";
		
		text.setText(a);
		assertEquals(a, observableValue.getValue()); 
		
		text.setText(b);
		text.notifyListeners(SWT.FocusOut, null);
		
		assertEquals(1, listener.count);
		assertEquals(a, listener.event.diff.getOldValue());
		assertEquals(b, listener.event.diff.getNewValue());
	}
	public void testDispose() throws Exception {
		TextObservableValue observableValue = new TextObservableValue(text,
				SWT.Modify);
		ValueChangeEventTracker testCounterValueChangeListener = new ValueChangeEventTracker();
		observableValue.addValueChangeListener(testCounterValueChangeListener);
		String expected1 = "Test123";
		text.setText(expected1);
		assertEquals(1, testCounterValueChangeListener.count);
		assertEquals(expected1, text.getText());
		assertEquals(expected1, observableValue.getValue());
		observableValue.dispose();
		String expected2 = "NewValue123";
		text.setText(expected2);
		assertEquals(1, testCounterValueChangeListener.count);
		assertEquals(expected2, text.getText());
	}
}