Package io.debezium.junit
Class SkipTestRule
- java.lang.Object
-
- io.debezium.junit.AnnotationBasedTestRule
-
- io.debezium.junit.SkipTestRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class SkipTestRule extends AnnotationBasedTestRule
JUnit rule that inspects the presence of theSkipLongRunningannotation 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 propertyskipLongRunningTestshas the valuetrue- Author:
- Horia Chiorean
-
-
Constructor Summary
Constructors Constructor Description SkipTestRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)private booleanisSkippedByDatabaseVersion(SkipWhenDatabaseVersion skipWhenDatabaseVersion)-
Methods inherited from class io.debezium.junit.AnnotationBasedTestRule
emptyStatement, hasAnnotation
-
-
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
-
isSkippedByDatabaseVersion
private boolean isSkippedByDatabaseVersion(SkipWhenDatabaseVersion skipWhenDatabaseVersion)
-
-