mirror of https://github.com/apache/lucene.git
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:
parent
2f7b7453b3
commit
c67b43ef34
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue