|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.TestRuleMarkFailure
public final class TestRuleMarkFailure
A rule for marking failed tests and suites.
Constructor Summary | |
---|---|
TestRuleMarkFailure(TestRuleMarkFailure... chained)
|
Method Summary | |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement s,
Description d)
|
boolean |
hadFailures()
Check if this object had any marked failures. |
static boolean |
isAssumption(Throwable t)
Is a given exception (or a MultipleFailureException) an AssumptionViolatedException ? |
void |
markFailed()
Taints this object and any chained as having failures. |
boolean |
wasSuccessful()
Check if this object was successful (the opposite of hadFailures() ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestRuleMarkFailure(TestRuleMarkFailure... chained)
Method Detail |
---|
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement s, Description d)
apply
in interface org.junit.rules.TestRule
public static boolean isAssumption(Throwable t)
AssumptionViolatedException
?
public void markFailed()
public boolean hadFailures()
public boolean wasSuccessful()
hadFailures()
).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |