lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r359080 - /lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java
Date Mon, 26 Dec 2005 17:22:49 GMT
Author: yonik
Date: Mon Dec 26 09:22:43 2005
New Revision: 359080

URL: http://svn.apache.org/viewcvs?rev=359080&view=rev
Log:
add test for hashCode/equals

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java?rev=359080&r1=359079&r2=359080&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java Mon
Dec 26 09:22:43 2005
@@ -9,6 +9,7 @@
 import org.apache.lucene.document.Field;
 import org.apache.lucene.search.IndexSearcher;
 import org.apache.lucene.search.Hits;
+import org.apache.lucene.search.QueryUtils;
 import org.apache.lucene.search.spans.SpanTermQuery;
 import org.apache.lucene.search.spans.SpanNearQuery;
 import org.apache.lucene.search.spans.SpanQuery;
@@ -29,5 +30,8 @@
     SpanNearQuery query = new SpanNearQuery(new SpanQuery[] {srq, stq}, 6, true);
     Hits hits = searcher.search(query);
     assertEquals(1, hits.length());
+    QueryUtils.check(srq);
+    QueryUtils.checkUnequal(srq,stq);
+    QueryUtils.checkUnequal(srq,query);
   }
 }



Mime
View raw message