lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r824169 - /lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/TestTermRangeQuery.java
Date Sun, 11 Oct 2009 21:23:29 GMT
Author: uschindler
Date: Sun Oct 11 21:23:28 2009
New Revision: 824169

URL: http://svn.apache.org/viewvc?rev=824169&view=rev
Log:
LUCENE-1971: Remove RangeQuery & Co.

Modified:
    lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/TestTermRangeQuery.java

Modified: lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/TestTermRangeQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/TestTermRangeQuery.java?rev=824169&r1=824168&r2=824169&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/TestTermRangeQuery.java
(original)
+++ lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/TestTermRangeQuery.java
Sun Oct 11 21:23:28 2009
@@ -66,23 +66,6 @@
     searcher.close();
   }
   
-  //TODO: remove in Lucene 3.0
-  public void testDeprecatedCstrctors() throws IOException {
-    Query query = new RangeQuery(null, new Term("content","C"), false);
-    initializeIndex(new String[] {"A", "B", "C", "D"});
-    IndexSearcher searcher = new IndexSearcher(dir, true);
-    ScoreDoc[] hits = searcher.search(query, null, 1000).scoreDocs;
-    assertEquals("A,B,C,D, only B in range", 2, hits.length);
-    searcher.close();
-    
-    query = new RangeQuery(new Term("content","C"),null, false);
-    initializeIndex(new String[] {"A", "B", "C", "D"});
-    searcher = new IndexSearcher(dir, true);
-    hits = searcher.search(query, null, 1000).scoreDocs;
-    assertEquals("A,B,C,D, only B in range", 1, hits.length);
-    searcher.close();
-  }
-
   public void testInclusive() throws Exception {
     Query query = new TermRangeQuery("content", "A", "C", true, true);
 



Mime
View raw message