LUCENE-8468: add ByteBuffersDirectory to randomized Directory implementations in LuceneTestCase (master branch only).

This commit is contained in:
Dawid Weiss 2018-08-29 10:43:00 +02:00
parent 1cfc735fff
commit ce504f4f81
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ import org.apache.lucene.search.Query;
import org.apache.lucene.search.QueryCache;
import org.apache.lucene.search.QueryCachingPolicy;
import org.apache.lucene.store.BaseDirectoryWrapper;
import org.apache.lucene.store.ByteBuffersDirectory;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.store.FSLockFactory;
@ -489,6 +490,7 @@ public abstract class LuceneTestCase extends Assert {
static {
CORE_DIRECTORIES = new ArrayList<>(FS_DIRECTORIES);
CORE_DIRECTORIES.add("RAMDirectory");
CORE_DIRECTORIES.add(ByteBuffersDirectory.class.getSimpleName());
}
/** A {@link org.apache.lucene.search.QueryCachingPolicy} that randomly caches. */