mirror of https://github.com/apache/lucene.git
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:
parent
c3cf0e5875
commit
99dc3b9ecf
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue