You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2014/05/01 18:30:08 UTC

svn commit: r1591702 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/core/ lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java

Author: rmuir
Date: Thu May  1 16:30:08 2014
New Revision: 1591702

URL: http://svn.apache.org/r1591702
Log:
LUCENE-5611: nuke dup buggy test

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java

Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java?rev=1591702&r1=1591701&r2=1591702&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java Thu May  1 16:30:08 2014
@@ -263,35 +263,6 @@ public class TestDocumentWriter extends 
   }
 
   /**
-   * Test adding two fields with the same name, but 
-   * with different term vector setting (LUCENE-766).
-   */
-  public void testMixedTermVectorSettingsSameField() throws Exception {
-    Document doc = new Document();
-    // f1 first without tv then with tv
-    doc.add(newStringField("f1", "v1", Field.Store.YES));
-    FieldType customType2 = new FieldType(StringField.TYPE_STORED);
-    customType2.setStoreTermVectors(true);
-    customType2.setStoreTermVectorOffsets(true);
-    customType2.setStoreTermVectorPositions(true);
-    doc.add(newField("f1", "v2", customType2));
-    // f2 first with tv then without tv
-    doc.add(newField("f2", "v1", customType2));
-    doc.add(newStringField("f2", "v2", Field.Store.YES));
-
-    IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
-        TEST_VERSION_CURRENT, new MockAnalyzer(random())));
-    try {
-      writer.addDocument(doc);
-      fail("did not hit exception");
-    } catch (IllegalArgumentException iae) {
-      assertEquals("all instances of a given field name must have the same term vectors settings (storeTermVectors changed for field=\"f1\")",
-                   iae.getMessage());
-    }
-    writer.close();
-  }
-
-  /**
    * Test adding two fields with the same name, one indexed
    * the other stored only. The omitNorms and omitTermFreqAndPositions setting
    * of the stored field should not affect the indexed one (LUCENE-1590)