Package io.debezium.junit
Class AnnotationBasedTestRule
java.lang.Object
io.debezium.junit.AnnotationBasedTestRule
- All Implemented Interfaces:
org.junit.rules.TestRule
- Direct Known Subclasses:
ConditionalFail,SkipTestRule
A base
TestRule that allows easy writing of test rules based on method annotations.- Author:
- Jiri Pechanec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.junit.runners.model.StatementemptyStatement(String reason, org.junit.runner.Description description) protected <T extends Annotation>
ThasAnnotation(org.junit.runner.Description description, Class<T> annotationClass) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.rules.TestRule
apply
-
Constructor Details
-
AnnotationBasedTestRule
public AnnotationBasedTestRule()
-
-
Method Details
-
emptyStatement
protected static org.junit.runners.model.Statement emptyStatement(String reason, org.junit.runner.Description description) -
hasAnnotation
protected <T extends Annotation> T hasAnnotation(org.junit.runner.Description description, Class<T> annotationClass)
-