Class 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.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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.
    • Method Detail

      • 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