lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bmes...@apache.org
Subject cvs commit: jakarta-lucene/src/test-deprecated/org/apache/lucene/index TestIndexReader.java
Date Sun, 19 Dec 2004 14:59:33 GMT
bmesser     2004/12/19 06:59:33

  Modified:    src/test-deprecated/org/apache/lucene/index
                        TestIndexReader.java
  Log:
  make deprecated test work again with bug fix in Reader getFieldNames
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-lucene/src/test-deprecated/org/apache/lucene/index/TestIndexReader.java
  
  Index: TestIndexReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test-deprecated/org/apache/lucene/index/TestIndexReader.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestIndexReader.java	5 Dec 2004 18:21:57 -0000	1.1
  +++ TestIndexReader.java	19 Dec 2004 14:59:33 -0000	1.2
  @@ -83,7 +83,7 @@
           // 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 @@
   
           // 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"));
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message