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/org/apache/lucene/index TestTermVectorsWriter.java
Date Mon, 22 Nov 2004 09:37:24 GMT
bmesser     2004/11/22 01:37:24

  Modified:    src/test/org/apache/lucene/index TestTermVectorsWriter.java
  Log:
  add short description for the new test and remove misleading comment.
  
  Revision  Changes    Path
  1.6       +8 -2      jakarta-lucene/src/test/org/apache/lucene/index/TestTermVectorsWriter.java
  
  Index: TestTermVectorsWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/index/TestTermVectorsWriter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestTermVectorsWriter.java	21 Nov 2004 22:33:54 -0000	1.5
  +++ TestTermVectorsWriter.java	22 Nov 2004 09:37:24 -0000	1.6
  @@ -204,6 +204,12 @@
       }
     }
     
  +  /**
  +   * Test that no NullPointerException will be raised,
  +   * when adding one document with a single, empty field
  +   * and term vectors enabled.
  +   *
  +   */
     public void testBadSegment() {
       try {
         dir = new RAMDirectory();
  @@ -211,10 +217,10 @@
         
         Document document = new Document();
         document.add(new Field("tvtest", "", Field.Store.NO, Field.Index.TOKENIZED,
  -          Field.TermVector.YES));    // throws exception, works with Field.TermVector.NO
  +          Field.TermVector.YES));
         ir.addDocument(document);
  -      
         ir.close();
  +      dir.close();
       } catch (Exception e) {
         e.printStackTrace();
         assertTrue(false);
  
  
  

---------------------------------------------------------------------
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