Class SkipRule

java.lang.Object
net.officefloor.test.skip.SkipRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class SkipRule extends Object implements org.junit.rules.TestRule
TestRule to skip test under particular conditions.
Author:
Daniel Sagenschneider
  • Constructor Details

    • SkipRule

      public SkipRule(SkipRule.SkipCondition condition)
      Instantiate with SkipRule.SkipCondition.
      Parameters:
      condition - SkipRule.SkipCondition.
    • SkipRule

      public SkipRule(boolean isSkip)
      Instantiate.
      Parameters:
      isSkip - Indicates whether to skip.
    • SkipRule

      public SkipRule(boolean isSkip, String message)
      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:
      apply in interface org.junit.rules.TestRule