LUCENE-5116: Simplify test to use MatchNoBits instead own impl

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1513487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2013-08-13 13:45:55 +00:00
parent 2baecc2713
commit 7e15dcb8b3
1 changed files with 1 additions and 4 deletions

View File

@ -1232,10 +1232,7 @@ public class TestAddIndexes extends LuceneTestCase {
IndexReader allDeletedReader = new FilterAtomicReader(w.getReader().leaves().get(0).reader()) {
@Override
public Bits getLiveDocs() {
return new Bits() {
@Override public int length() { return 1; }
@Override public boolean get(int index) { return false; }
};
return new Bits.MatchNoBits(in.maxDoc());
}
@Override public boolean hasDeletions() { return true; }
@Override public int numDocs() { return 0; }