lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r808530 - /lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java
Date Thu, 27 Aug 2009 17:05:53 GMT
Author: mikemccand
Date: Thu Aug 27 17:05:53 2009
New Revision: 808530

URL: http://svn.apache.org/viewvc?rev=808530&view=rev
Log:
fix TestCheckIndex to accept either 2.9 or 2.9-dev as valid, from common-build.xml

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java?rev=808530&r1=808529&r2=808530&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java Thu Aug 27 17:05:53
2009
@@ -93,7 +93,9 @@
   public void testLuceneConstantVersion() throws IOException {
     // common-build.xml sets lucene.version
     final String version = System.getProperty("lucene.version");
-    assertEquals(version, Constants.LUCENE_MAIN_VERSION+"-dev");
+    assertNotNull(version);
+    assertTrue(version.equals(Constants.LUCENE_MAIN_VERSION+"-dev") ||
+               version.equals(Constants.LUCENE_MAIN_VERSION));
     assertTrue(Constants.LUCENE_VERSION.startsWith(version));
   }
 }



Mime
View raw message