Annotation Type SkipWhenDatabaseVersion


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Repeatable(SkipWhenDatabaseVersions.class) public @interface SkipWhenDatabaseVersion
Marker annotation used together with the SkipTestRule JUnit rule, that allows tests to be skipped based on the database version used for testing.
Author:
Chris Cranford
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Defines the type of equal-check that should initiate the skip on the test class or method.
    int
    Specify the database major version; cannot be omitted.
    Specifies the reason for skipping the method, used when logging a skipped test.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Specify the database minor version; defaults to -1 to imply skipping minor version check.
    int
    Specify the database patch version; defaults to {code -1} to imply skipping patch version check.
  • Element Details

    • major

      int major
      Specify the database major version; cannot be omitted.
    • check

      Defines the type of equal-check that should initiate the skip on the test class or method.
    • reason

      String reason
      Specifies the reason for skipping the method, used when logging a skipped test.
    • minor

      int minor
      Specify the database minor version; defaults to -1 to imply skipping minor version check.
      Default:
      -1
    • patch

      int patch
      Specify the database patch version; defaults to {code -1} to imply skipping patch version check.
      Returns:
      Default:
      -1