From 4d24124f6ba71b11659b1e071e899d5741ef152e Mon Sep 17 00:00:00 2001 From: Ilia Motornyi Date: Tue, 14 Feb 2017 08:20:43 +0200 Subject: [PATCH] Provide explicit locale in GridTest (#8525) Fixes #8524 --- .../com/vaadin/tests/server/component/grid/GridTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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); -- 2.39.5