Package io.debezium.junit
Class SkipTestRule
java.lang.Object
io.debezium.junit.AnnotationBasedTestRule
io.debezium.junit.SkipTestRule
- All Implemented Interfaces:
org.junit.rules.TestRule
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) booleanisSkippedByConnectorUnderTest(org.junit.runner.Description description, SkipWhenConnectorUnderTest connectorUnderTestAnnotation) private booleanisSkippedByDatabaseVersion(SkipWhenDatabaseVersion skipWhenDatabaseVersion) Methods inherited from class io.debezium.junit.AnnotationBasedTestRule
emptyStatement, hasAnnotation
-
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
-