lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r168640 - in /lucene/java/trunk/src/test/org/apache/lucene/search: CheckHits.java TestBoolean2.java spans/TestBasics.java spans/TestSpans.java
Date Fri, 06 May 2005 19:29:45 GMT
Author: dnaber
Date: Fri May  6 12:29:40 2005
New Revision: 168640

URL: http://svn.apache.org/viewcvs?rev=168640&view=rev
Log:
remove useless parameter

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/CheckHits.java
    lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java
    lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestBasics.java
    lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestSpans.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/CheckHits.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/search/CheckHits.java?rev=168640&r1=168639&r2=168640&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/CheckHits.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/CheckHits.java Fri May  6 12:29:40
2005
@@ -29,8 +29,7 @@
         Query query,
         String defaultFieldName,
         Searcher searcher,
-        int[] results,
-        TestCase testCase)
+        int[] results)
           throws IOException {
     Hits hits = searcher.search(query);
 
@@ -48,7 +47,7 @@
   }
 
   /** Tests that a Hits has an expected order of documents */
-  public static void checkDocIds(String mes, int[] results, Hits hits, TestCase testCase)
+  public static void checkDocIds(String mes, int[] results, Hits hits)
   throws IOException {
     TestCase.assertEquals(mes + " nr of hits", results.length, hits.length());
     for (int i = 0; i < results.length; i++) {
@@ -63,12 +62,11 @@
         Query query,
         Hits hits1,
         Hits hits2,
-        int[] results,
-        TestCase testCase)
+        int[] results)
           throws IOException {
 
-    checkDocIds("hits1", results, hits1, testCase);
-    checkDocIds("hits2", results, hits2, testCase);
+    checkDocIds("hits1", results, hits1);
+    checkDocIds("hits2", results, hits2);
     
     final float scoreTolerance = 1.0e-7f;
     for (int i = 0; i < results.length; i++) {

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java?rev=168640&r1=168639&r2=168640&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java Fri May  6 12:29:40
2005
@@ -73,7 +73,7 @@
     BooleanQuery.setUseScorer14(false);
     Hits hits2 = searcher.search(query2);
 
-    CheckHits.checkHitsQuery(query2, hits1, hits2, expDocNrs, this);
+    CheckHits.checkHitsQuery(query2, hits1, hits2, expDocNrs);
   }
 
   public void testQueries01() throws Exception {

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestBasics.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestBasics.java?rev=168640&r1=168639&r2=168640&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestBasics.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestBasics.java Fri May  6 12:29:40
2005
@@ -263,6 +263,6 @@
 
 
   private void checkHits(Query query, int[] results) throws IOException {
-    CheckHits.checkHits(query, "field", searcher, results, this);
+    CheckHits.checkHits(query, "field", searcher, results);
   }
 }

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestSpans.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestSpans.java?rev=168640&r1=168639&r2=168640&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestSpans.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/spans/TestSpans.java Fri May  6 12:29:40
2005
@@ -59,7 +59,7 @@
   }
   
   private void checkHits(Query query, int[] results) throws IOException {
-    CheckHits.checkHits(query, field, searcher, results, this);
+    CheckHits.checkHits(query, field, searcher, results);
   }
   
   public void orderedSlopTest3(int slop, int[] expectedDocs) throws IOException {



Mime
View raw message