Package io.debezium.junit
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 ElementsModifier and TypeRequired ElementDescriptionDefines the type of equal-check that should initiate the skip on the test class or method.intSpecify 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
-
Element Details
-
major
int majorSpecify the database major version; cannot be omitted. -
check
EqualityCheck checkDefines the type of equal-check that should initiate the skip on the test class or method. -
reason
String reasonSpecifies the reason for skipping the method, used when logging a skipped test.
-
-
-
minor
int minorSpecify the database minor version; defaults to-1to imply skipping minor version check.- Default:
- -1
-
patch
int patchSpecify the database patch version; defaults to {code -1} to imply skipping patch version check.- Returns:
- Default:
- -1
-