aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2010-08-13 06:30:50 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2010-08-13 06:30:50 +0000
commit603aafcc065eaef3d2841e94af5f18e9973a5489 (patch)
tree4178b3968de24193f795be7687c48d4bab0ef72b
parent5e0ca8faf9df6b9c23d6d8f53761c68daf781d20 (diff)
downloadvaadin-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.java8
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() {