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 Details

    • SkipTestRule

      public SkipTestRule()
  • Method Details

    • apply

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

      public boolean isSkippedByConnectorUnderTest(org.junit.runner.Description description, SkipWhenConnectorUnderTest connectorUnderTestAnnotation)
    • isSkippedByDatabaseVersion

      private boolean isSkippedByDatabaseVersion(SkipWhenDatabaseVersion skipWhenDatabaseVersion)