LUCENE-5879: fix test compilation (this enum no longer exists)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670923 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-04-02 15:18:08 +00:00
parent 30807709e6
commit 61166afce7
1 changed files with 0 additions and 6 deletions

View File

@ -118,18 +118,12 @@ public class TestTermRangeQuery extends LuceneTestCase {
IndexSearcher searcher = newSearcher(reader);
TermRangeQuery query = new TermRangeQuery("content", null, null, true, true);
Terms terms = MultiFields.getTerms(searcher.getIndexReader(), "content");
// Should return the unfiltered TermsEnum:
assertFalse(query.getTermsEnum(terms) instanceof TermRangeTermsEnum);
assertEquals(4, searcher.search(query, 1000).scoreDocs.length);
query = TermRangeQuery.newStringRange("content", "", null, true, true);
// Should return the unfiltered TermsEnum:
assertFalse(query.getTermsEnum(terms) instanceof TermRangeTermsEnum);
assertEquals(4, searcher.search(query, 1000).scoreDocs.length);
query = TermRangeQuery.newStringRange("content", "", null, true, false);
assertFalse(query.getTermsEnum(terms) instanceof TermRangeTermsEnum);
assertEquals(4, searcher.search(query, 1000).scoreDocs.length);
// and now another one