Package org.apache.lucene.tests.util
Class TestRuleIgnoreAfterMaxFailures
- java.lang.Object
-
- org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class TestRuleIgnoreAfterMaxFailures extends Object implements org.junit.rules.TestRule
This rule keeps a count of failed tests (suites) and will result in anAssumptionViolatedExceptionafter a given number of failures for all tests following this condition.Aborting quickly on failed tests can be useful when used in combination with test repeats (via the
Repeatannotation or system property).
-
-
Constructor Summary
Constructors Constructor Description TestRuleIgnoreAfterMaxFailures(int maxFailures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement s, Description d)
-
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s, Description d)- Specified by:
applyin interfaceorg.junit.rules.TestRule
-
-