field.setInvalidAllowed(false);
}
public void testConvert42AndValidator() {
property = new ObjectProperty<Integer>(123);
field.setConverter(new ConvertTo42());
field.setPropertyDataSource(property);
field.addValidator(new RangeValidator<Integer>("Incorrect value",
Integer.class, 42, 42));