portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raph...@apache.org
Subject cvs commit: jakarta-jetspeed/src/test/org/apache/jetspeed/services/search TestSearch.java
Date Fri, 21 May 2004 14:52:55 GMT
raphael     2004/05/21 07:52:55

  Modified:    src/test/org/apache/jetspeed/services/search TestSearch.java
  Log:
  JS1-476: Fix TestSearch for non-US people
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-jetspeed/src/test/org/apache/jetspeed/services/search/TestSearch.java
  
  Index: TestSearch.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/test/org/apache/jetspeed/services/search/TestSearch.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestSearch.java	15 May 2004 19:26:59 -0000	1.2
  +++ TestSearch.java	21 May 2004 14:52:55 -0000	1.3
  @@ -97,7 +97,7 @@
           
           assertNotNull("Created URL to Jetspeed Home Page",  jetspeedHomePage);
           assertTrue("Adding to index", Search.add(jetspeedHomePage));
  -        assertTrue("Adding to index", Search.add(new URL("http://www.google.com")));
  +        assertTrue("Adding to index", Search.add(new URL("http://www.java.net")));
           assertTrue("Adding to index", Search.add(new URL("http://portals.apache.org")));
       }
       
  @@ -108,8 +108,8 @@
       public void testVerifyJetspeedSearch() throws Exception
       {
           ParsedObject result = null;
  -        SearchResults results  = Search.search("rss");
  -        System.out.println("Query 'rss' hits = " + results.size());
  +        SearchResults results  = Search.search("YourResultsBelongToUs");
  +        System.out.println("Query 'YourResultsBelongToUs' hits = " + results.size());
           assertTrue(" Hit count == 0", results.size() == 0);
           for (int i = 0; i < results.size(); i++)
           {
  @@ -140,8 +140,8 @@
       public void testVerifyJetspeedSearch2() throws Exception
       {
           ParsedObject result = null;
  -        SearchResults results  = Search.search("google");
  -        System.out.println("Query 'goggle' hits = " + results.size());
  +        SearchResults results  = Search.search("community");
  +        System.out.println("Query 'community' hits = " + results.size());
           assertTrue(" Hit count > 0", results.size() > 0);
           for (int i = 0; i < results.size(); 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