diff options
author | Taiki Sugawara <buzz.taiki@gmail.com> | 2012-02-25 01:30:20 +0900 |
---|---|---|
committer | Taiki Sugawara <buzz.taiki@gmail.com> | 2012-02-25 01:30:20 +0900 |
commit | b01f5aba871bc84945031d6f2322fddf4ede4543 (patch) | |
tree | 97fbdf5a22afa678f2344eda3c844f5a6c393379 /test | |
parent | 102e7eafb01e702412c318c6ff189e562be7924e (diff) | |
download | lombok-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.java | 8 |
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); + } } } |