diff options
author | John Alhroos <john.ahlroos@itmill.com> | 2010-08-13 06:30:50 +0000 |
---|---|---|
committer | John Alhroos <john.ahlroos@itmill.com> | 2010-08-13 06:30:50 +0000 |
commit | 603aafcc065eaef3d2841e94af5f18e9973a5489 (patch) | |
tree | 4178b3968de24193f795be7687c48d4bab0ef72b | |
parent | 5e0ca8faf9df6b9c23d6d8f53761c68daf781d20 (diff) | |
download | vaadin-framework-603aafcc065eaef3d2841e94af5f18e9973a5489.tar.gz vaadin-framework-603aafcc065eaef3d2841e94af5f18e9973a5489.zip |
Fixed EditeModeChange test so that the initial date always is the same.
svn changeset:14477/svn branch:6.4
-rw-r--r-- | tests/src/com/vaadin/tests/components/table/EditableModeChange.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/src/com/vaadin/tests/components/table/EditableModeChange.java b/tests/src/com/vaadin/tests/components/table/EditableModeChange.java index 3ed0161b82..f3cd53642d 100644 --- a/tests/src/com/vaadin/tests/components/table/EditableModeChange.java +++ b/tests/src/com/vaadin/tests/components/table/EditableModeChange.java @@ -1,5 +1,6 @@ package com.vaadin.tests.components.table;
+import java.util.Calendar;
import java.util.Date;
import com.vaadin.data.Container;
@@ -29,11 +30,14 @@ public class EditableModeChange extends TestBase { final TableFieldFactory fieldFactory = new ItemFieldFactory();
items.setTableFieldFactory(fieldFactory);
+ Calendar cal = Calendar.getInstance();
+ cal.set(2010, 7, 12, 12, 7, 54);
+ Date date = cal.getTime();
+
for (String name : names) {
items.addItem(name);
items.getItem(name).getItemProperty("name").setValue(name);
- items.getItem(name).getItemProperty("birthday")
- .setValue(new Date());
+ items.getItem(name).getItemProperty("birthday").setValue(date);
}
items.addListener(new ItemClickEvent.ItemClickListener() {
|