aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTaiki Sugawara <buzz.taiki@gmail.com>2012-02-25 01:30:20 +0900
committerTaiki Sugawara <buzz.taiki@gmail.com>2012-02-25 01:30:20 +0900
commitb01f5aba871bc84945031d6f2322fddf4ede4543 (patch)
tree97fbdf5a22afa678f2344eda3c844f5a6c393379 /test
parent102e7eafb01e702412c318c6ff189e562be7924e (diff)
downloadlombok-b01f5aba871bc84945031d6f2322fddf4ede4543.tar.gz
lombok-b01f5aba871bc84945031d6f2322fddf4ede4543.tar.bz2
lombok-b01f5aba871bc84945031d6f2322fddf4ede4543.zip
Use english locale on test via delombok for using english message catalog.
Diffstat (limited to 'test')
-rw-r--r--test/core/src/lombok/RunTestsViaDelombok.java8
1 files changed, 7 insertions, 1 deletions
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);
+ }
}
}