Bug 117965 [DataBinding] Change tests plugin to pre-req examples
This will allow the UI tests in examples to make use of the pojo model
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/TextControlScenario.java
String originalPhoneNumber = account.getPhone();
		text.setText("999");
		
		assertTrue(((String)getDbc().getPartialValidationMessage().getValue()).length() > 0);
		assertTrue(((String)getDbc().getValidationMessage().getValue()).length() == 0);
		
		assertEquals(account.getPhone(),originalPhoneNumber);
		
		text.setText("999-888-7777");		
		assertTrue(((String)getDbc().getPartialValidationMessage().getValue()).length() == 0);
		assertEquals(account.getPhone(),"9998887777");
		
	}
	
	public void testScenario07(){
		
		getSWTUpdatableFactory().setUpdateTime(IDataBindingContext.TIME_LATE);
		getDbc().bind(text, new Property(account, "phone"), new BindSpec(new PhoneConverter(),new PhoneValidator()));		
				
		String originalPhoneNumber = account.getPhone();
		text.setText("222");
		
		assertTrue(((String)getDbc().getPartialValidationMessage().getValue()).length() > 0);
		assertTrue(((String)getDbc().getValidationMessage().getValue()).length() == 0);
		
		text.setText("222-333-4444");
		
		assertTrue(((String)getDbc().getPartialValidationMessage().getValue()).length() == 0);
		assertTrue(((String)getDbc().getValidationMessage().getValue()).length() == 0);