diff options
author | Ruslan Diachenko <rd.ryly@gmail.com> | 2015-09-19 00:51:24 +0100 |
---|---|---|
committer | Roman Ivanov <ivanov-jr@mail.ru> | 2015-09-20 05:53:40 -0700 |
commit | d814d1352b63136a400cd8f4dffd03d68c9ccd24 (patch) | |
tree | 552da8f1eeefa06ab680f44f53a8a450c0008d20 /src/it | |
parent | dbcca4f428fbab2d34e19db05b9bbfb145d20b85 (diff) | |
download | checkstyle-d814d1352b63136a400cd8f4dffd03d68c9ccd24.tar.gz |
Issue #2193: ROOT locale added in checker creation for UT; travis updated with a new check
Diffstat (limited to 'src/it')
-rw-r--r-- | src/it/java/com/google/checkstyle/test/base/ConfigValidationTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/it/java/com/google/checkstyle/test/base/ConfigValidationTest.java b/src/it/java/com/google/checkstyle/test/base/ConfigValidationTest.java index b4d93d3e0..268f9e7ee 100644 --- a/src/it/java/com/google/checkstyle/test/base/ConfigValidationTest.java +++ b/src/it/java/com/google/checkstyle/test/base/ConfigValidationTest.java @@ -5,6 +5,7 @@ import static org.apache.commons.lang3.ArrayUtils.EMPTY_STRING_ARRAY; import java.io.File; import java.util.List; +import java.util.Locale; import org.junit.Test; @@ -17,6 +18,9 @@ public class ConfigValidationTest extends BaseCheckTestSupport { ConfigurationBuilder builder = new ConfigurationBuilder(new File("src/it/")); final Configuration checkerConfig = builder.getConfiguration(); final Checker checker = new Checker(); + final Locale locale = Locale.ROOT; + checker.setLocaleCountry(locale.getCountry()); + checker.setLocaleLanguage(locale.getLanguage()); checker.setModuleClassLoader(Thread.currentThread().getContextClassLoader()); checker.configure(checkerConfig); checker.addListener(new BriefLogger(stream)); |