程序包 org.hipparchus

类 RetryRunner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.hipparchus.RetryRunner
所有已实现的接口:
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
一个在断言失败时重试测试的测试运行器。
  • 构造器概要

    构造器
    构造器
    说明
    RetryRunner(Class<?> testClass)
    简单构造器。
  • 方法概要

    修饰符和类型
    方法
    说明
    org.junit.runners.model.Statement
    methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
     

    从类继承的方法 org.junit.runners.BlockJUnit4ClassRunner

    collectInitializationErrors, computeTestMethods, createTest, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout

    从类继承的方法 org.junit.runners.ParentRunner

    childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation

    从类继承的方法 org.junit.runner.Runner

    testCount

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • RetryRunner

      public RetryRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
      简单构造器。
      参数:
      testClass - 要测试的类。
      抛出:
      org.junit.runners.model.InitializationError - 如果无法构建默认运行器。
  • 方法详细资料

    • methodInvoker

      public org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
      覆盖:
      methodInvoker 在类中 org.junit.runners.BlockJUnit4ClassRunner