aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-07 14:47:56 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-07 14:47:56 +0200
commit95316ca5cc7dd60adf5d317de2d815909faa0712 (patch)
treebba695af053411cced363521617e28a04f391134 /uitest/src/com/vaadin
parent15e9a428214dc1933844da3b514d49f418351051 (diff)
downloadvaadin-framework-95316ca5cc7dd60adf5d317de2d815909faa0712.tar.gz
vaadin-framework-95316ca5cc7dd60adf5d317de2d815909faa0712.zip
Fix GridThemeUI to use more stable date format
Change-Id: I94099919f68d3ffeb340bed30d9066e0911d53cf
Diffstat (limited to 'uitest/src/com/vaadin')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/GridThemeUI.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/GridThemeUI.java b/uitest/src/com/vaadin/tests/components/grid/GridThemeUI.java
index 871d24d9ab..add9773ae1 100644
--- a/uitest/src/com/vaadin/tests/components/grid/GridThemeUI.java
+++ b/uitest/src/com/vaadin/tests/components/grid/GridThemeUI.java
@@ -15,6 +15,7 @@
*/
package com.vaadin.tests.components.grid;
+import java.text.DateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
@@ -34,6 +35,7 @@ import com.vaadin.ui.ComboBox;
import com.vaadin.ui.Component;
import com.vaadin.ui.Grid;
import com.vaadin.ui.NativeSelect;
+import com.vaadin.ui.renderers.DateRenderer;
@Theme("valo")
public class GridThemeUI extends AbstractTestUIWithLog {
@@ -134,6 +136,8 @@ public class GridThemeUI extends AbstractTestUIWithLog {
getColumn("age").getEditorField().addValidator(
new IntegerRangeValidator("Must be between 0 and 100", 0,
100));
+ getColumn("birthDate").setRenderer(
+ new DateRenderer(DateFormat.getDateInstance()));
addFooterRowAt(0);
}