From b01f5aba871bc84945031d6f2322fddf4ede4543 Mon Sep 17 00:00:00 2001 From: Taiki Sugawara Date: Sat, 25 Feb 2012 01:30:20 +0900 Subject: Use english locale on test via delombok for using english message catalog. --- test/core/src/lombok/RunTestsViaDelombok.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/core/src') diff --git a/test/core/src/lombok/RunTestsViaDelombok.java b/test/core/src/lombok/RunTestsViaDelombok.java index bde74434..a8f88757 100644 --- a/test/core/src/lombok/RunTestsViaDelombok.java +++ b/test/core/src/lombok/RunTestsViaDelombok.java @@ -56,6 +56,12 @@ public class RunTestsViaDelombok extends AbstractRunTests { delombok.addFile(file.getAbsoluteFile().getParentFile(), file.getName()); delombok.setSourcepath(file.getAbsoluteFile().getParent()); delombok.setWriter(result); - delombok.delombok(); + Locale originalLocale = Locale.getDefault(); + Locale.setDefault(Locale.ENGLISH); + try { + delombok.delombok(); + } finally { + Locale.setDefault(originalLocale); + } } } -- cgit From 6c5ca79942391d13b59a0d80d45873690af8e446 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 5 Mar 2012 20:22:27 +0100 Subject: Issue 349: Test failed in some environments --- test/core/src/lombok/RunTestsViaDelombok.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/core/src') diff --git a/test/core/src/lombok/RunTestsViaDelombok.java b/test/core/src/lombok/RunTestsViaDelombok.java index a8f88757..52653e2e 100644 --- a/test/core/src/lombok/RunTestsViaDelombok.java +++ b/test/core/src/lombok/RunTestsViaDelombok.java @@ -57,8 +57,8 @@ public class RunTestsViaDelombok extends AbstractRunTests { delombok.setSourcepath(file.getAbsoluteFile().getParent()); delombok.setWriter(result); Locale originalLocale = Locale.getDefault(); - Locale.setDefault(Locale.ENGLISH); try { + Locale.setDefault(Locale.ENGLISH); delombok.delombok(); } finally { Locale.setDefault(originalLocale); -- cgit