mirror of https://github.com/apache/lucene.git
make deprecated test work again with bug fix in Reader getFieldNames
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
785e50ba82
commit
2779fa5edc
|
@ -83,7 +83,7 @@ public class TestIndexReader extends TestCase
|
|||
// verify fields again
|
||||
reader = IndexReader.open(d);
|
||||
fieldNames = reader.getFieldNames();
|
||||
assertEquals(9, fieldNames.size()); // the following fields + an empty one (bug?!)
|
||||
assertEquals(8, fieldNames.size()); // the following fields
|
||||
assertTrue(fieldNames.contains("keyword"));
|
||||
assertTrue(fieldNames.contains("text"));
|
||||
assertTrue(fieldNames.contains("unindexed"));
|
||||
|
@ -105,7 +105,7 @@ public class TestIndexReader extends TestCase
|
|||
|
||||
// verify that only unindexed fields were returned
|
||||
Collection unindexedFieldNames = reader.getFieldNames(false);
|
||||
assertEquals(3, unindexedFieldNames.size()); // the following fields + an empty one
|
||||
assertEquals(2, unindexedFieldNames.size()); // the following fields
|
||||
assertTrue(unindexedFieldNames.contains("unindexed"));
|
||||
assertTrue(unindexedFieldNames.contains("unindexed2"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue