Apache Solr open-source search software
LUCENE-5611: nuke dup buggy test
Robert Muir01829ad787a3
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.javaindex b2f97ceceb6..59e7ca6e4b8 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestDocumentWriter.java@@ -260,35 +260,6 @@ public class TestDocumentWriter extends LuceneTestCase {reader.close();}- /**- * 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.shutdown();- }-/*** Test adding two fields with the same name, one indexed* the other stored only. The omitNorms and omitTermFreqAndPositions setting