lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1237355 - in /lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index: TestIsCurrent.java TestMultiLevelSkipList.java
Date Sun, 29 Jan 2012 17:10:34 GMT
Author: rmuir
Date: Sun Jan 29 17:10:33 2012
New Revision: 1237355

URL: http://svn.apache.org/viewvc?rev=1237355&view=rev
Log:
LUCENE-2858: fix tests

Modified:
    lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestIsCurrent.java
    lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestMultiLevelSkipList.java

Modified: lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestIsCurrent.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestIsCurrent.java?rev=1237355&r1=1237354&r2=1237355&view=diff
==============================================================================
--- lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestIsCurrent.java
(original)
+++ lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestIsCurrent.java
Sun Jan 29 17:10:33 2012
@@ -63,7 +63,7 @@ public class TestIsCurrent extends Lucen
   public void testDeleteByTermIsCurrent() throws IOException {
 
     // get reader
-    IndexReader reader = writer.getReader();
+    DirectoryReader reader = writer.getReader();
 
     // assert index has a document and reader is up2date 
     assertEquals("One document should be in the index", 1, writer.numDocs());
@@ -90,7 +90,7 @@ public class TestIsCurrent extends Lucen
   public void testDeleteAllIsCurrent() throws IOException {
 
     // get reader
-    IndexReader reader = writer.getReader();
+    DirectoryReader reader = writer.getReader();
 
     // assert index has a document and reader is up2date 
     assertEquals("One document should be in the index", 1, writer.numDocs());

Modified: lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestMultiLevelSkipList.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestMultiLevelSkipList.java?rev=1237355&r1=1237354&r2=1237355&view=diff
==============================================================================
--- lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestMultiLevelSkipList.java
(original)
+++ lucene/dev/branches/lucene2858/lucene/src/test/org/apache/lucene/index/TestMultiLevelSkipList.java
Sun Jan 29 17:10:33 2012
@@ -80,7 +80,7 @@ public class TestMultiLevelSkipList exte
     writer.forceMerge(1);
     writer.close();
 
-    IndexReader reader = getOnlySegmentReader(IndexReader.open(dir));
+    AtomicIndexReader reader = getOnlySegmentReader(IndexReader.open(dir));
     
     for (int i = 0; i < 2; i++) {
       counter = 0;



Mime
View raw message