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:
Simon Willnauer 2006-12-13 12:55:43 +00:00
parent d775297874
commit 5aabf7a0b9
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@
<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"/>
<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-api-1.0.1.jar"/>
</fileset>

View File

@ -68,7 +68,8 @@ public class TestGdataIndexWriter extends TestCase {
writer = new GDataIndexWriter(new RAMDirectory(),true,this.schemaPerFielAnalyzer);
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_INT,writer.getMaxBufferedDocs());
assertEquals(VALUE_GT_DEFAULT_INT,writer.getMaxMergeDocs());