use of com.vaadin.flow.data.binder.testcomponents.TestDatePicker in project flow by vaadin.
the class ValueContextTest method testHasValue2.
@Test
public void testHasValue2() {
setLocale(Locale.getDefault());
ValueContext fromComponent = new ValueContext(new TestDatePicker(), textField);
Assert.assertEquals(textField, fromComponent.getHasValue().get());
}
use of com.vaadin.flow.data.binder.testcomponents.TestDatePicker in project flow by vaadin.
the class ValueContextTest method testHasValue3.
@Test
public void testHasValue3() {
setLocale(Locale.getDefault());
ValueContext fromComponent = new ValueContext(new TestDatePicker(), textField, Locale.CANADA);
Assert.assertEquals(textField, fromComponent.getHasValue().get());
Assert.assertEquals(Locale.CANADA, fromComponent.getLocale().get());
}
Aggregations