diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2017-02-14 08:20:43 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-02-14 13:45:58 +0200 |
commit | 4b0062582fd23dd82c1159ea4a94a91d5be673c8 (patch) | |
tree | e63edddc4252cf96074d5e54b4d2979da83e9b62 /server | |
parent | 4a4465d0d95fbb7a0e00a9858036cd72953f2e84 (diff) | |
download | vaadin-framework-4b0062582fd23dd82c1159ea4a94a91d5be673c8.tar.gz vaadin-framework-4b0062582fd23dd82c1159ea4a94a91d5be673c8.zip |
Provide explicit locale in GridTest (#8525)
Fixes #8524
Diffstat (limited to 'server')
-rw-r--r-- | server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java | 5 |
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); |