use of com.vaadin.flow.component.textfield.TextArea in project linkki by linkki-framework.
the class BindSuffixAspectDefinitionTest method testSuffixType_Dynamic.
@Test
public void testSuffixType_Dynamic() {
TextArea area = new TextArea();
callSuffixAspectDefinition(area, "€", SuffixType.DYNAMIC);
String suffixResult = area.getSuffixComponent().getElement().getText();
assertThat(suffixResult, is("%"));
}
use of com.vaadin.flow.component.textfield.TextArea in project linkki by linkki-framework.
the class BindVisibleAspectDefinitionTest method testVisibleType_Dynamic.
@Test
public void testVisibleType_Dynamic() {
TextArea area = createVisibleComponent();
area.setVisible(false);
assertThat(area.isVisible(), is(false));
createUiUpdaterAndApplyIt_BindVisibleAspect(area, VisibleType.DYNAMIC);
// TestObject#isVisible() -> true
assertThat(area.isVisible(), is(true));
}
use of com.vaadin.flow.component.textfield.TextArea in project linkki by linkki-framework.
the class BindVisibleAspectDefinitionTest method testVisibleType_Visible.
@Test
public void testVisibleType_Visible() {
TextArea area = createVisibleComponent();
area.setVisible(false);
createUiUpdaterAndApplyIt_BindVisibleAspect(area, VisibleType.VISIBLE);
assertThat(area.isVisible(), is(true));
}
use of com.vaadin.flow.component.textfield.TextArea in project linkki by linkki-framework.
the class ComponentFactoryTest method testNewTextArea_EmptyHeight.
@Test
void testNewTextArea_EmptyHeight() {
TextArea textArea = ComponentFactory.newTextArea(250, "500px", "");
assertThat(textArea.getHeight()).isNull();
}
use of com.vaadin.flow.component.textfield.TextArea in project linkki by linkki-framework.
the class ComponentFactoryTest method testNewTextArea.
@Test
void testNewTextArea() {
TextArea textArea = ComponentFactory.newTextArea(250, "500px", "100px");
assertThat(textArea.getMaxLength()).isEqualTo(250);
assertThat(textArea.getWidth()).isEqualTo("500px");
assertThat(textArea.getHeight()).isEqualTo("100px");
}
Aggregations