lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r890427 - /lucene/java/trunk/src/test/org/apache/lucene/util/LocalizedTestCase.java
Date Mon, 14 Dec 2009 18:26:27 GMT
Author: rmuir
Date: Mon Dec 14 18:26:26 2009
New Revision: 890427

URL: http://svn.apache.org/viewvc?rev=890427&view=rev
Log:
LUCENE-2155: add assertion to check if something changes default locale behind our back when
using LocalizedTestCase

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/util/LocalizedTestCase.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/util/LocalizedTestCase.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/util/LocalizedTestCase.java?rev=890427&r1=890426&r2=890427&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/util/LocalizedTestCase.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/util/LocalizedTestCase.java Mon Dec 14 18:26:26
2009
@@ -73,6 +73,8 @@
 
   @Override
   protected void tearDown() throws Exception {
+    assertEquals("default locale unexpectedly changed:", locale, Locale
+        .getDefault());
     Locale.setDefault(defaultLocale);
     super.tearDown();
   }



Mime
View raw message