use of com.vaadin.flow.data.converter.StringToIntegerConverter in project flow by vaadin.
the class BeanBinderTest method bindInstanceFields_does_not_automatically_bind_incomplete_forField_bindings.
@Test(expected = IllegalStateException.class)
public void bindInstanceFields_does_not_automatically_bind_incomplete_forField_bindings() {
Binder<TestBean> otherBinder = new Binder<>(TestBean.class);
TestClass testClass = new TestClass();
otherBinder.forField(testClass.number).withConverter(new StringToIntegerConverter(""));
// Should throw an IllegalStateException since the binding for number is
// not completed with bind
otherBinder.bindInstanceFields(testClass);
}
Aggregations