static LuceneTestCase() { ClassEnvRule = new TestRuleSetupAndRestoreClassEnv(); bool defaultValue = false; foreach (string property in Arrays.AsList("tests.leaveTemporary", "tests.leavetemporary", "tests.leavetmpdir", "solr.test.leavetmpdir")) // Solr's legacy - default - lowercase - ANT tasks's (junit4) flag. { defaultValue |= RandomizedTest.SystemPropertyAsBoolean(property, false); } LEAVE_TEMPORARY = defaultValue; CORE_DIRECTORIES = new List<string>(FS_DIRECTORIES); CORE_DIRECTORIES.Add("RAMDirectory"); int maxFailures = RandomizedTest.SystemPropertyAsInt(SYSPROP_MAXFAILURES, int.MaxValue); bool failFast = RandomizedTest.SystemPropertyAsBoolean(SYSPROP_FAILFAST, false); if (failFast) { if (maxFailures == int.MaxValue) { maxFailures = 1; } else { Console.Out.Write(typeof(LuceneTestCase).Name + " WARNING: Property '" + SYSPROP_MAXFAILURES + "'=" + maxFailures + ", 'failfast' is" + " ignored."); } } AppSettings.Set("tests.seed", Random().NextLong().ToString()); //IgnoreAfterMaxFailuresDelegate = new AtomicReference<TestRuleIgnoreAfterMaxFailures>(new TestRuleIgnoreAfterMaxFailures(maxFailures)); //IgnoreAfterMaxFailures = TestRuleDelegate.Of(IgnoreAfterMaxFailuresDelegate); }
public virtual void SetUp() { // LUCENENET TODO: Not sure how to convert these //ParentChainCallRule.SetupCalled = true; ClassEnvRule = new TestRuleSetupAndRestoreClassEnv(); }
public Lucene46CodecAnonymousInnerClassHelper(TestRuleSetupAndRestoreClassEnv outerInstance, PostingsFormat format, DocValuesFormat dvFormat) { this.outerInstance = outerInstance; this.format = format; this.dvFormat = dvFormat; }
public Lucene46CodecAnonymousInnerClassHelper(TestRuleSetupAndRestoreClassEnv outerInstance, PostingsFormat format, DocValuesFormat dvFormat) { this.OuterInstance = outerInstance; this.Format = format; this.DvFormat = dvFormat; }
public LuceneTestCase() { OLD_FORMAT_IMPERSONATION_IS_ACTIVE = false; ClassEnvRule = new TestRuleSetupAndRestoreClassEnv(); String directory = Paths.TempDirectory; TEMP_DIR = new System.IO.FileInfo(directory); }