Text extends Component implements HasText { @Override public String getText() { return getElement().getText(); } Text(String text); @Override void setText(String text); @Override String getText(); @Override void setId(String id); @Override void setVisible(boolean visible);  }
@Test public void emptyText() { Assert.assertEquals("", new Text("").getText()); }
@Test public void setGetText() { Assert.assertEquals("Simple", new Text("Simple").getText()); Assert.assertEquals("åäö €#%°#", new Text("åäö €#%°#").getText()); }