mirror of https://github.com/apache/lucene.git
if a test is annotated to not use simpletext/memory, don't pick simpletext
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1337327 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8656182135
commit
b6e6b94b08
|
@ -420,7 +420,7 @@ public abstract class LuceneTestCase extends Assert {
|
||||||
codec = Codec.forName("Lucene3x");
|
codec = Codec.forName("Lucene3x");
|
||||||
assert (codec instanceof PreFlexRWCodec) : "fix your classpath to have tests-framework.jar before lucene-core.jar";
|
assert (codec instanceof PreFlexRWCodec) : "fix your classpath to have tests-framework.jar before lucene-core.jar";
|
||||||
PREFLEX_IMPERSONATION_IS_ACTIVE = true;
|
PREFLEX_IMPERSONATION_IS_ACTIVE = true;
|
||||||
} else if ("SimpleText".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 9)) {
|
} else if ("SimpleText".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 9 && !useNoMemoryExpensiveCodec)) {
|
||||||
codec = new SimpleTextCodec();
|
codec = new SimpleTextCodec();
|
||||||
} else if ("Appending".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 8)) {
|
} else if ("Appending".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 8)) {
|
||||||
codec = new AppendingCodec();
|
codec = new AppendingCodec();
|
||||||
|
|
Loading…
Reference in New Issue