improve dv testing

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1436437 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-01-21 16:05:04 +00:00
parent 7c35e206ce
commit 74471833e6
2 changed files with 6 additions and 2 deletions

View File

@ -27,9 +27,12 @@ import java.util.Random;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.lucene.analysis.*;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.FieldType;
import org.apache.lucene.document.LongDocValuesField;
import org.apache.lucene.document.SortedBytesDocValuesField;
import org.apache.lucene.document.StringField;
import org.apache.lucene.document.TextField;
import org.apache.lucene.index.IndexWriterConfig.OpenMode;
@ -49,7 +52,6 @@ import org.apache.lucene.util.InfoStream;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util._TestUtil;
//nocommit: make this tests DV2.0
public class TestIndexWriterExceptions extends LuceneTestCase {
private static class DocCopyIterator implements Iterable<Document> {
@ -138,6 +140,9 @@ public class TestIndexWriterExceptions extends LuceneTestCase {
doc.add(newTextField(r, "content4", "aaa bbb ccc ddd", Field.Store.NO));
doc.add(newStringField(r, "content5", "aaa bbb ccc ddd", Field.Store.NO));
doc.add(new LongDocValuesField("numericdv", 5));
doc.add(new BinaryDocValuesField("binarydv", new BytesRef("hello")));
doc.add(new SortedBytesDocValuesField("sorteddv", new BytesRef("world")));
doc.add(newField(r, "content7", "aaa bbb ccc ddd", DocCopyIterator.custom4));

View File

@ -41,7 +41,6 @@ import static org.apache.lucene.index.TestIndexWriter.assertNoUnreferencedFiles;
/**
* Tests for IndexWriter when the disk runs out of space
*/
//nocommit: make sure disk full etc tests here test DV2.0
public class TestIndexWriterOnDiskFull extends LuceneTestCase {
/*