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
fail();
		}
		try {
			new TextObservableValue(text, SWT.Verify);
			fail();
		} catch (IllegalArgumentException e) {
			assertTrue(true);
		}
	}
	public void testSetValue() throws Exception {
		TextObservableValue observableValue = new TextObservableValue(text,
				SWT.NONE);
		assertEquals("", observableValue.getValue());
		String value = "value";
		observableValue.setValue(value);
		assertEquals("observable value", value, observableValue.getValue());
	}
	
	public void testSetValueValueChangeEvent() throws Exception {
		String a = "a";
		String b = "b";
		
		TextObservableValue observableValue = new TextObservableValue(text, SWT.NONE);
		observableValue.addValueChangeListener(listener);
		
		observableValue.setValue(a);
		assertEquals("", listener.event.diff.getOldValue());
		assertEquals(a, listener.event.diff.getNewValue());
		
		observableValue.setValue(b);