public final class TestRuleMarkFailure extends Object implements org.junit.rules.TestRule
Constructor and Description |
---|
TestRuleMarkFailure(TestRuleMarkFailure... chained) |
Modifier and Type | Method and Description |
---|---|
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() ). |
public TestRuleMarkFailure(TestRuleMarkFailure... chained)
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()
).Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.