Package io.debezium.junit
Class ConditionalFail
java.lang.Object
io.debezium.junit.AnnotationBasedTestRule
io.debezium.junit.ConditionalFail
- All Implemented Interfaces:
org.junit.rules.TestRule
JUnit rule that inspects the presence of the
ShouldFailWhen annotation on a test method.
If it finds the annotation, it will modify pass/fail report of test depending on the condition
defined in the annotation.- Author:
- Jiri Pechanec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) private org.junit.runners.model.StatementfailOnCondition(org.junit.runners.model.Statement base, org.junit.runner.Description description, ShouldFailWhen conditionClass) private org.junit.runners.model.StatementignoreFlakyFailure(org.junit.runners.model.Statement base, org.junit.runner.Description description, Flaky flakyClass) private StringMethods inherited from class io.debezium.junit.AnnotationBasedTestRule
emptyStatement, hasAnnotation
-
Field Details
-
FLAKY_LOGGER
private static final org.slf4j.Logger FLAKY_LOGGER -
JIRA_BASE_URL
- See Also:
-
-
Constructor Details
-
ConditionalFail
public ConditionalFail()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) -
failOnCondition
private org.junit.runners.model.Statement failOnCondition(org.junit.runners.model.Statement base, org.junit.runner.Description description, ShouldFailWhen conditionClass) -
ignoreFlakyFailure
private org.junit.runners.model.Statement ignoreFlakyFailure(org.junit.runners.model.Statement base, org.junit.runner.Description description, Flaky flakyClass) -
issueUrl
-