mirror of https://github.com/apache/lucene.git
Fixed compile error in GDataIndexWriterTest as IndexWriter has not commitTimeout setter anymore.
Fixed misspelled path in gom-build.xml git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@486631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d775297874
commit
5aabf7a0b9
|
@ -25,7 +25,7 @@
|
||||||
<available file="${build.dir}/${final.name}.jar" property="gdata.core.jar.present"/>
|
<available file="${build.dir}/${final.name}.jar" property="gdata.core.jar.present"/>
|
||||||
<fail if="${gdata.core.jar.present}" message="Must gdata core jar first. run build.xml - 'jar-core' task"/>
|
<fail if="${gdata.core.jar.present}" message="Must gdata core jar first. run build.xml - 'jar-core' task"/>
|
||||||
<path id="gom.build.path">
|
<path id="gom.build.path">
|
||||||
<fileset id="gom-jars" dir="${gdata.lib.dir}">
|
<fileset id="gom-jars" dir="${gdata.external.lib.dir}">
|
||||||
<include name="stax-1.1.2-dev.jar"/>
|
<include name="stax-1.1.2-dev.jar"/>
|
||||||
<include name="stax-api-1.0.1.jar"/>
|
<include name="stax-api-1.0.1.jar"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
|
|
|
@ -68,7 +68,8 @@ public class TestGdataIndexWriter extends TestCase {
|
||||||
|
|
||||||
writer = new GDataIndexWriter(new RAMDirectory(),true,this.schemaPerFielAnalyzer);
|
writer = new GDataIndexWriter(new RAMDirectory(),true,this.schemaPerFielAnalyzer);
|
||||||
assertTrue(writer.getAnalyzer().getClass() == PerFieldAnalyzerWrapper.class);
|
assertTrue(writer.getAnalyzer().getClass() == PerFieldAnalyzerWrapper.class);
|
||||||
assertEquals(VALUE_GT_DEFAULT_LONG,writer.getCommitLockTimeout());
|
//TODO fix this - index writer has no commitlocktimeout setter anymore (lockless commits)
|
||||||
|
// assertEquals(VALUE_GT_DEFAULT_LONG,writer.getCommitLockTimeout());
|
||||||
assertEquals(VALUE_GT_DEFAULT_LONG,writer.getWriteLockTimeout());
|
assertEquals(VALUE_GT_DEFAULT_LONG,writer.getWriteLockTimeout());
|
||||||
assertEquals(VALUE_GT_DEFAULT_INT,writer.getMaxBufferedDocs());
|
assertEquals(VALUE_GT_DEFAULT_INT,writer.getMaxBufferedDocs());
|
||||||
assertEquals(VALUE_GT_DEFAULT_INT,writer.getMaxMergeDocs());
|
assertEquals(VALUE_GT_DEFAULT_INT,writer.getMaxMergeDocs());
|
||||||
|
|
Loading…
Reference in New Issue