diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-04-15 11:06:18 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-04-15 14:00:58 +0300 |
commit | 6b8412033e680ce6e5c7827ac504adf132305726 (patch) | |
tree | 0df05d16c324b285610af8910c126b58f4c490c5 /uitest/src/com/vaadin/tests/fields/FormOneToOne.java | |
parent | 9192b0bb5e5e699b506b3d3e7df4cf295fbea44a (diff) | |
download | vaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.tar.gz vaadin-framework-6b8412033e680ce6e5c7827ac504adf132305726.zip |
Build uitest war with maven
Change-Id: I32625901ca27a282253df44c6e776cf9632bacda
Diffstat (limited to 'uitest/src/com/vaadin/tests/fields/FormOneToOne.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/fields/FormOneToOne.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/uitest/src/com/vaadin/tests/fields/FormOneToOne.java b/uitest/src/com/vaadin/tests/fields/FormOneToOne.java deleted file mode 100644 index 36f4dfe0ea..0000000000 --- a/uitest/src/com/vaadin/tests/fields/FormOneToOne.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.vaadin.tests.fields; - -import com.vaadin.data.util.BeanItem; -import com.vaadin.tests.components.TestBase; -import com.vaadin.tests.util.Person; -import com.vaadin.ui.Form; - -public class FormOneToOne extends TestBase { - - @Override - protected void setup() { - final Form form = new Form(); - addComponent(form); - form.setItemDataSource(createPersonItem()); - } - - protected BeanItem<Person> createPersonItem() { - Person person = new Person("First", "Last", "foo@vaadin.com", - "02-111 2222", "Ruukinkatu 2-4", 20540, "Turku"); - - BeanItem<Person> item = new BeanItem<Person>(person); - // add nested properties from address - item.expandProperty("address"); - - return item; - } - - @Override - protected String getDescription() { - return "Form where some properties come from a sub-object of the bean."; - } - - @Override - protected Integer getTicketNumber() { - return null; - } - -} |