예제 #1
0
		  protected internal virtual void Before()
		  {
			if (!isPropertyEmpty(SysGlobals.SYSPROP_TESTFILTER()) || !isPropertyEmpty(SysGlobals.SYSPROP_TESTCLASS()) || !isPropertyEmpty(SysGlobals.SYSPROP_TESTMETHOD()) || !isPropertyEmpty(SysGlobals.SYSPROP_ITERATIONS()))
			{
			  // We're running with a complex test filter that is properly handled by classes
			  // which are executed by RandomizedRunner. The "outer" classes testing LuceneTestCase
			  // itself are executed by the default JUnit runner and would be always executed.
			  // We thus always skip execution if any filtering is detected.
			  Assume.assumeTrue(false);
			}

			// Check zombie threads from previous suites. Don't run if zombies are around.
			RandomizedTest.assumeFalse(RandomizedRunner.hasZombieThreads());

			TestRuleIgnoreAfterMaxFailures newRule = new TestRuleIgnoreAfterMaxFailures(int.MaxValue);
			prevRule = LuceneTestCase.replaceMaxFailureRule(newRule);
			RandomizedTest.assumeFalse(FailureMarker.hadFailures());
		  }
 public StatementAnonymousInnerClassHelper(TestRuleIgnoreAfterMaxFailures outerInstance, Statement s)
 {
     this.OuterInstance = outerInstance;
       this.s = s;
 }
예제 #3
0
 public StatementAnonymousInnerClassHelper(TestRuleIgnoreAfterMaxFailures outerInstance, Statement s)
 {
     this.OuterInstance = outerInstance;
     this.s             = s;
 }