Package net.officefloor.test.skip
Class SkipRule
- java.lang.Object
-
- net.officefloor.test.skip.SkipRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class SkipRule extends java.lang.Object implements org.junit.rules.TestRule
TestRule
to skip test under particular conditions.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SkipRule.SkipCondition
Condition for skipping.
-
Constructor Summary
Constructors Constructor Description SkipRule(boolean isSkip)
Instantiate.SkipRule(boolean isSkip, java.lang.String message)
Instantiate.SkipRule(SkipRule.SkipCondition condition)
Instantiate withSkipRule.SkipCondition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
-
-
-
Constructor Detail
-
SkipRule
public SkipRule(SkipRule.SkipCondition condition)
Instantiate withSkipRule.SkipCondition
.- Parameters:
condition
-SkipRule.SkipCondition
.
-
SkipRule
public SkipRule(boolean isSkip)
Instantiate.- Parameters:
isSkip
- Indicates whether to skip.
-
SkipRule
public SkipRule(boolean isSkip, java.lang.String message)
Instantiate.- Parameters:
isSkip
- Indicates whether to skip.message
- Skip message.
-
-