LUCENE-2155: add assertion to check if something changes default locale behind our back when using LocalizedTestCase

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@890427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2009-12-14 18:26:26 +00:00
parent 2f7b7453b3
commit c67b43ef34
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ public abstract class LocalizedTestCase extends LuceneTestCase {
@Override
protected void tearDown() throws Exception {
assertEquals("default locale unexpectedly changed:", locale, Locale
.getDefault());
Locale.setDefault(defaultLocale);
super.tearDown();
}