org.apache.commons.math3
Class RetryRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by org.apache.commons.math3.RetryRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class RetryRunner
extends org.junit.runners.BlockJUnit4ClassRunner

A test runner that retries tests when assertions fail.

Version:
$Id: RetryRunner.java 1244107 2012-02-14 16:17:55Z erans $

Constructor Summary
RetryRunner(Class<?> testClass)
          Simple constructor.
 
Method Summary
 org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
           
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryRunner

public RetryRunner(Class<?> testClass)
            throws org.junit.runners.model.InitializationError
Simple constructor.

Parameters:
testClass - Class to test.
Throws:
org.junit.runners.model.InitializationError - if default runner cannot be built.
Method Detail

methodInvoker

public org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
                                                       Object test)
Overrides:
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.