Package org.apache.lucene.tests.util
Class TestRuleMarkFailure
java.lang.Object
org.apache.lucene.tests.util.TestRuleMarkFailure
- All Implemented Interfaces:
org.junit.rules.TestRule
A rule for marking failed tests and suites.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statement
apply
(org.junit.runners.model.Statement s, Description d) boolean
Check if this object had any marked failures.static boolean
Is a given exception (or a MultipleFailureException) anAssumptionViolatedException
?void
Taints this object and any chained as having failures.boolean
Check if this object was successful (the opposite ofhadFailures()
).
-
Constructor Details
-
TestRuleMarkFailure
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceorg.junit.rules.TestRule
-
isAssumption
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()
).
-