portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/lucene TestLuceneSearch.java
Date Wed, 21 May 2003 02:20:44 GMT
paulsp      2003/05/20 19:20:44

  Modified:    src/java/org/apache/jetspeed/services/lucene
                        TestLuceneSearch.java
  Log:
  Add test to verify the hit count
  
  Revision  Changes    Path
  1.6       +6 -3      jakarta-jetspeed/src/java/org/apache/jetspeed/services/lucene/TestLuceneSearch.java
  
  Index: TestLuceneSearch.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/lucene/TestLuceneSearch.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestLuceneSearch.java	20 May 2003 07:16:29 -0000	1.5
  +++ TestLuceneSearch.java	21 May 2003 02:20:44 -0000	1.6
  @@ -126,8 +126,9 @@
       public void testVerifyJetspeedSearch() throws Exception
       {
           SearchResult result = null;
  -        SearchResults results  = LuceneSearch.search("Jetspeed");
  -        System.out.println("Query 'Jetspeed' hits = " + results.size());
  +        SearchResults results  = LuceneSearch.search("rss");
  +        System.out.println("Query 'rss' hits = " + results.size());
  +        assertTrue(" Hit count > 0", results.size() > 0);
           for (int i = 0; i < results.size(); i++)
           {
               result = results.get(i);
  @@ -143,6 +144,7 @@
           SearchResult result = null;
           SearchResults results  = LuceneSearch.search("Jetspeed Lucene");
           System.out.println("Query 'Jetspeed Lucene' hits = " + results.size());
  +        assertTrue(" Hit count > 0", results.size() > 0);
           for (int i = 0; i < results.size(); i++)
           {
               result = results.get(i);
  @@ -158,6 +160,7 @@
           SearchResult result = null;
           SearchResults results  = LuceneSearch.search("google");
           System.out.println("Query 'goggle' hits = " + results.size());
  +        assertTrue(" Hit count > 0", results.size() > 0);
           for (int i = 0; i < results.size(); i++)
           {
               result = results.get(i);
  
  
  

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


Mime
View raw message