prevent test from getting Direct postingsformat either

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1368614 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-08-02 17:39:27 +00:00
parent a04534c399
commit 275eff26a6
1 changed files with 3 additions and 0 deletions

View File

@ -891,9 +891,12 @@ public class TestIndexWriterDelete extends LuceneTestCase {
}
public void testIndexingThenDeleting() throws Exception {
// TODO: move this test to its own class and just @SuppressCodecs?
// TODO: is it enough to just use newFSDirectory?
final String fieldFormat = _TestUtil.getPostingsFormat("field");
assumeFalse("This test cannot run with Memory codec", fieldFormat.equals("Memory"));
assumeFalse("This test cannot run with SimpleText codec", fieldFormat.equals("SimpleText"));
assumeFalse("This test cannot run with Direct codec", fieldFormat.equals("Direct"));
final Random r = random();
Directory dir = newDirectory();
// note this test explicitly disables payloads