类 InfraRunner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
cn.taketoday.test.context.junit4.JUnit4ClassRunner
cn.taketoday.test.context.junit4.InfraRunner
所有已实现的接口:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable

public final class InfraRunner extends JUnit4ClassRunner
Runner is an alias for the JUnit4ClassRunner.

To use this class, simply annotate a JUnit 4 based test class with @RunWith(Runner.class).

If you would like to use the TestContext Framework with a runner other than this one, use InfraClassRule and InfraMethodRule.

NOTE: This class requires JUnit 4.12 or higher.

从以下版本开始:
4.0
作者:
Sam Brannen
另请参阅:
  • 构造器详细资料

    • InfraRunner

      public InfraRunner(Class<?> clazz) throws org.junit.runners.model.InitializationError
      Construct a new Runner and initialize a TestContextManager to provide Infra testing functionality to standard JUnit 4 tests.
      参数:
      clazz - the test class to be run
      抛出:
      org.junit.runners.model.InitializationError
      另请参阅: