Class SkipTestDependingOnDatabaseOptionRule

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

    public class SkipTestDependingOnDatabaseOptionRule
    extends AnnotationBasedTestRule
    JUnit rule that automatically skips a test if the RequireDatabaseOption annotation at either the class or test method level if the option specified isn't enabled or available on the test database used by TestHelper.testConnection().
    Author:
    Chris Cranford
    • Constructor Detail

      • SkipTestDependingOnDatabaseOptionRule

        public SkipTestDependingOnDatabaseOptionRule()
    • Method Detail

      • apply

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

        private String getDatabaseOptionValue​(String option)