Package net.officefloor.test.skip
Class SkipRule
java.lang.Object
net.officefloor.test.skip.SkipRule
- All Implemented Interfaces:
org.junit.rules.TestRule
TestRule to skip test under particular conditions.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSkipRule(boolean isSkip) Instantiate.Instantiate.SkipRule(SkipRule.SkipCondition condition) Instantiate withSkipRule.SkipCondition. -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
-
Constructor Details
-
SkipRule
Instantiate withSkipRule.SkipCondition.- Parameters:
condition-SkipRule.SkipCondition.
-
SkipRule
public SkipRule(boolean isSkip) Instantiate.- Parameters:
isSkip- Indicates whether to skip.
-
SkipRule
Instantiate.- Parameters:
isSkip- Indicates whether to skip.message- Skip message.
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-