Package org.apache.lucene.tests.util
Class TestRuleMarkFailure
- java.lang.Object
-
- org.apache.lucene.tests.util.TestRuleMarkFailure
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public final class TestRuleMarkFailure extends Object implements org.junit.rules.TestRule
A rule for marking failed tests and suites.
-
-
Constructor Summary
Constructors Constructor Description TestRuleMarkFailure(TestRuleMarkFailure... chained)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement s, Description d)booleanhadFailures()Check if this object had any marked failures.static booleanisAssumption(Throwable t)Is a given exception (or a MultipleFailureException) anAssumptionViolatedException?voidmarkFailed()Taints this object and any chained as having failures.booleanwasSuccessful()Check if this object was successful (the opposite ofhadFailures()).
-
-
-
Constructor Detail
-
TestRuleMarkFailure
public TestRuleMarkFailure(TestRuleMarkFailure... chained)
-
-
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
-
isAssumption
public static boolean isAssumption(Throwable t)
Is a given exception (or a MultipleFailureException) anAssumptionViolatedException?
-
markFailed
public void markFailed()
Taints this object and any chained as having failures.
-
hadFailures
public boolean hadFailures()
Check if this object had any marked failures.
-
wasSuccessful
public boolean wasSuccessful()
Check if this object was successful (the opposite ofhadFailures()).
-
-