fix TestCheckIndex to accept either 2.9 or 2.9-dev as valid, from common-build.xml

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@808530 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-08-27 17:05:53 +00:00
parent 1537fe7102
commit 710572d798
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ public class TestCheckIndex extends LuceneTestCase {
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));
}
}