mirror of https://github.com/apache/lucene.git
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:
parent
1537fe7102
commit
710572d798
|
@ -93,7 +93,9 @@ public class TestCheckIndex extends LuceneTestCase {
|
||||||
public void testLuceneConstantVersion() throws IOException {
|
public void testLuceneConstantVersion() throws IOException {
|
||||||
// common-build.xml sets lucene.version
|
// common-build.xml sets lucene.version
|
||||||
final String version = System.getProperty("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));
|
assertTrue(Constants.LUCENE_VERSION.startsWith(version));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue