use of com.vaadin.flow.component.textfield.EmailField in project flow-components by vaadin.
the class EmailFieldTest method setValueNull.
@Test
public void setValueNull() {
EmailField emailField = new EmailField();
assertEquals("Value should be an empty string", "", emailField.getValue());
thrown.expect(NullPointerException.class);
thrown.expectMessage("Null value is not supported");
emailField.setValue(null);
}
use of com.vaadin.flow.component.textfield.EmailField in project flow-components by vaadin.
the class HasLabelTest method emailField.
@Test
public void emailField() {
EmailField c = new EmailField();
Assert.assertTrue(c instanceof HasLabel);
}
Aggregations