From 10ae54c7248aafdc3a79e91bc4d84792e94c65c3 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Mon, 26 Dec 2005 17:22:43 +0000 Subject: [PATCH] add test for hashCode/equals git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@359080 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/search/regex/TestSpanRegexQuery.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java b/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java index 6b662bcdcd4..8438532d240 100644 --- a/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java +++ b/src/test/org/apache/lucene/search/regex/TestSpanRegexQuery.java @@ -9,6 +9,7 @@ import org.apache.lucene.document.Document; 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 @@ public class TestSpanRegexQuery extends TestCase { 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); } }