Package com.itextpdf.test.runners
Class RetryRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner
org.junit.runners.BlockJUnit4ClassRunner
com.itextpdf.test.runners.RetryRunner
- All Implemented Interfaces:
-
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
public class RetryRunner extends org.junit.runners.BlockJUnit4ClassRunner
This class is used for flaky test retry after failure. In current implementation we use specified retryCount = 3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(org.junit.runner.notification.RunNotifier notifier) protected voidrunChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier) protected final voidrunTestUnit(org.junit.runners.model.Statement statement, org.junit.runner.Description description, org.junit.runner.notification.RunNotifier notifier) Runs an atomic testMethods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutMethods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Constructor Details
-
RetryRunner
- Throws:
-
org.junit.runners.model.InitializationError
-
-
Method Details
-
run
public void run(org.junit.runner.notification.RunNotifier notifier) - Overrides:
-
runin classorg.junit.runners.ParentRunner - Parameters:
-
notifier- RunNotifier
-
runChild
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier) - Overrides:
-
runChildin classorg.junit.runners.BlockJUnit4ClassRunner - Parameters:
-
method- FrameworkMethod -
notifier- RunNotifier
-
runTestUnit
protected final void runTestUnit(org.junit.runners.model.Statement statement, org.junit.runner.Description description, org.junit.runner.notification.RunNotifier notifier) Runs an atomic test- Parameters:
-
statement- Statement -
description- Description -
notifier- RunNotifier
-