lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/search TestNot.java
Date Thu, 23 Oct 2003 02:20:48 GMT
ehatcher    2003/10/22 19:20:48

  Modified:    src/test/org/apache/lucene/index TestDoc.java
               src/test/org/apache/lucene/search TestNot.java
  Log:
  remove System.out.printlns from tests
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-lucene/src/test/org/apache/lucene/index/TestDoc.java
  
  Index: TestDoc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/index/TestDoc.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestDoc.java	23 Oct 2003 02:02:06 -0000	1.2
  +++ TestDoc.java	23 Oct 2003 02:20:48 -0000	1.3
  @@ -163,7 +163,7 @@
         out.close();
         sw.close();
         String multiFileOutput = sw.getBuffer().toString();
  -      System.out.println(multiFileOutput);
  +      //System.out.println(multiFileOutput);
   
         sw = new StringWriter();
         out = new PrintWriter(sw, true);
  
  
  
  1.2       +5 -5      jakarta-lucene/src/test/org/apache/lucene/search/TestNot.java
  
  Index: TestNot.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestNot.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestNot.java	7 Feb 2003 18:45:16 -0000	1.1
  +++ TestNot.java	23 Oct 2003 02:20:48 -0000	1.2
  @@ -79,18 +79,18 @@
     public void testNot() throws Exception {
       RAMDirectory store = new RAMDirectory();
       IndexWriter writer = new IndexWriter(store, new SimpleAnalyzer(), true);
  -    
  +
       Document d1 = new Document();
       d1.add(Field.Text("field", "a b"));
  -    
  +
       writer.addDocument(d1);
       writer.optimize();
       writer.close();
   
       Searcher searcher = new IndexSearcher(store);
       Query query = QueryParser.parse("a NOT b", "field", new SimpleAnalyzer());
  -    System.out.println(query);
  -    Hits hits = searcher.search(query); 
  +    //System.out.println(query);
  +    Hits hits = searcher.search(query);
       assertEquals(0, hits.length());
     }
   }
  
  
  

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