Class RetryTestExecutionExtension
- java.lang.Object
-
- org.apache.flink.testutils.junit.extensions.retry.RetryTestExecutionExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.ExecutionCondition
,org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class RetryTestExecutionExtension extends Object implements org.junit.jupiter.api.extension.ExecutionCondition, org.junit.jupiter.api.extension.TestExecutionExceptionHandler, org.junit.jupiter.api.extension.AfterEachCallback
Extension to decide whether a retry test should run.
-
-
Constructor Summary
Constructors Constructor Description RetryTestExecutionExtension(int retryIndex, int totalTimes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
org.junit.jupiter.api.extension.ConditionEvaluationResult
evaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext context)
void
handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
-
-
-
Method Detail
-
evaluateExecutionCondition
public org.junit.jupiter.api.extension.ConditionEvaluationResult evaluateExecutionCondition(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
evaluateExecutionCondition
in interfaceorg.junit.jupiter.api.extension.ExecutionCondition
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable
- Specified by:
handleTestExecutionException
in interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler
- Throws:
Throwable
-
-