Class SkipTestRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class SkipTestRule
    extends AnnotationBasedTestRule
    JUnit rule that inspects the presence of the SkipLongRunning annotation either on a test method or on a test suite. If it finds the annotation, it will only run the test method/suite if the system property skipLongRunningTests has the value true
    Author:
    Horia Chiorean
    • Constructor Detail

      • SkipTestRule

        public SkipTestRule()
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
      • isSkippedByDatabaseVersion

        private boolean isSkippedByDatabaseVersion​(SkipWhenDatabaseVersion skipWhenDatabaseVersion)