summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2398.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2398.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2398.java b/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
new file mode 100644
index 0000000000..f5b68800e6
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2398.java
@@ -0,0 +1,40 @@
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.data.util.IndexedContainer;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.UI.LegacyWindow;
+import com.vaadin.ui.Table;
+
+public class Ticket2398 extends Application.LegacyApplication {
+
+ @Override
+ public void init() {
+
+ final LegacyWindow mainWin = new LegacyWindow();
+ setMainWindow(mainWin);
+
+ Table t = new Table();
+
+ IndexedContainer c = new IndexedContainer();
+
+ c.addItem("foo");
+
+ c.addContainerProperty("testcol1", Integer.class, new Integer(7));
+ c.addContainerProperty("testcol2", String.class, "str");
+ c.addContainerProperty("testcol3", String.class, null);
+
+ c.addItem("bar");
+
+ t.setContainerDataSource(c);
+
+ t.setRowHeaderMode(Table.ROW_HEADER_MODE_ID);
+
+ mainWin.addComponent(new Label(
+ "Both rows in table should have same data (default values)"));
+
+ mainWin.addComponent(t);
+
+ }
+
+}