lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r778865 - /lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java
Date Tue, 26 May 2009 20:05:10 GMT
Author: mikemccand
Date: Tue May 26 20:05:10 2009
New Revision: 778865

URL: http://svn.apache.org/viewvc?rev=778865&view=rev
Log:
LUCENE-1654: remove test case that was relying on new-to-2.9 API

Modified:
    lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java

Modified: lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java?rev=778865&r1=778864&r2=778865&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java
(original)
+++ lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestIndexWriter.java
Tue May 26 20:05:10 2009
@@ -4144,44 +4144,6 @@
     }
   }
 
-  // LUCENE-1382
-  public void testCommitUserData() throws IOException {
-    Directory dir = new MockRAMDirectory();
-    IndexWriter w = new IndexWriter(dir, new WhitespaceAnalyzer(), IndexWriter.MaxFieldLength.LIMITED);
-    w.setMaxBufferedDocs(2);
-    for(int j=0;j<17;j++)
-      addDoc(w);
-    w.close();
-
-    assertEquals(null, IndexReader.getCommitUserData(dir));
-
-    IndexReader r = IndexReader.open(dir);
-    // commit(String) never called for this index
-    assertEquals(null, r.getCommitUserData());
-    r.close();
-      
-    w = new IndexWriter(dir, new WhitespaceAnalyzer(), IndexWriter.MaxFieldLength.LIMITED);
-    w.setMaxBufferedDocs(2);
-    for(int j=0;j<17;j++)
-      addDoc(w);
-    w.commit("test1");
-    w.close();
-      
-    assertEquals("test1", IndexReader.getCommitUserData(dir));
-
-    r = IndexReader.open(dir);
-    assertEquals("test1", r.getCommitUserData());
-    r.close();
-
-    w = new IndexWriter(dir, new WhitespaceAnalyzer(), IndexWriter.MaxFieldLength.LIMITED);
-    w.optimize();
-    w.close();
-
-    assertEquals("test1", IndexReader.getCommitUserData(dir));
-      
-    dir.close();
-  }
-
   public void testOptimizeExceptions() throws IOException {
     RAMDirectory startDir = new MockRAMDirectory();
     IndexWriter w = new IndexWriter(startDir, new WhitespaceAnalyzer(), IndexWriter.MaxFieldLength.UNLIMITED);
   



Mime
View raw message