]> source.dussan.org Git - vaadin-framework.git/commitdiff
Provide explicit locale in GridTest (#8525)
authorIlia Motornyi <elmot@vaadin.com>
Tue, 14 Feb 2017 06:20:43 +0000 (08:20 +0200)
committerHenri Sara <henri.sara@gmail.com>
Tue, 14 Feb 2017 06:20:43 +0000 (08:20 +0200)
Fixes #8524

server/src/test/java/com/vaadin/tests/server/component/grid/GridTest.java

index fafbd4c90009a0000ef96b5ad101b9a3482e4653..397bc27b82c649819dce26063cb5c40acae963c2 100644 (file)
@@ -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);