aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2017-02-14 08:20:43 +0200
committerHenri Sara <henri.sara@gmail.com>2017-02-14 08:20:43 +0200
commit4d24124f6ba71b11659b1e071e899d5741ef152e (patch)
tree78e27b4c5d241c3666e7be9e0fce45ee5415f425 /server/src/test
parent12529d131a138520de5367057802a8b0f5c67b9a (diff)
downloadvaadin-framework-4d24124f6ba71b11659b1e071e899d5741ef152e.tar.gz
vaadin-framework-4d24124f6ba71b11659b1e071e899d5741ef152e.zip
Provide explicit locale in GridTest (#8525)
Fixes #8524
Diffstat (limited to 'server/src/test')
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java b/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java
index fafbd4c900..397bc27b82 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java
@@ -5,11 +5,13 @@ import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import java.text.DecimalFormat;
+import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
+import java.util.Locale;
import java.util.Optional;
import java.util.Random;
import java.util.Set;
@@ -504,7 +506,8 @@ public class GridTest {
Grid<Person> grid = new Grid<>(Person.class);
grid.removeColumn("born");
- grid.addColumn("born", new NumberRenderer(new DecimalFormat("#,###")));
+ grid.addColumn("born", new NumberRenderer(new DecimalFormat("#,###",
+ DecimalFormatSymbols.getInstance(Locale.US))));
Person person = new Person("Name", 2017);