extend test to show FieldsReader Bug#LUCENE-455

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@326610 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bernhard Messer 2005-10-19 16:56:11 +00:00
parent c3cf0e5875
commit 99dc3b9ecf
1 changed files with 6 additions and 0 deletions

View File

@ -53,9 +53,15 @@ public class TestFieldsReader extends TestCase {
Document doc = reader.doc(0);
assertTrue(doc != null);
assertTrue(doc.getField("textField1") != null);
Field field = doc.getField("textField2");
assertTrue(field != null);
assertTrue(field.isTermVectorStored() == true);
assertTrue(field.isStoreOffsetWithTermVector() == true);
assertTrue(field.isStorePositionWithTermVector() == true);
reader.close();
}
}