Computer (JUnit API)
From Junit
|
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
org.junit.runner Class Computer
java.lang.Objectorg.junit.runner.Computer
public class Computer
- extends Object
Represents a strategy for computing runners and suites. WARNING: this class is very likely to undergo serious changes in version 4.8 and beyond.
| 构造器摘要 | |
|---|---|
Computer()
|
|
| 方法摘要 | |
|---|---|
protected Runner |
getRunner(org.junit.runners.model.RunnerBuilder builder,
Class<?> testClass)
Create a single-class runner for testClass, using builder |
Runner |
getSuite(org.junit.runners.model.RunnerBuilder builder,
Class<?>[] classes)
Create a suite for classes, building Runners with builder. |
static Computer |
serial()
Returns a new default computer, which runs tests in serial order |
| 类方法继承: java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造器详细信息 |
|---|
Computer
public Computer()
| 方法详细信息 |
|---|
serial
public static Computer serial()
- Returns a new default computer, which runs tests in serial order
getSuite
public Runner getSuite(org.junit.runners.model.RunnerBuilder builder, Class<?>[] classes) throws org.junit.runners.model.InitializationError
- Create a suite for
classes, building Runners withbuilder. Throws an InitializationError if Runner construction fails - 抛出异常:
org.junit.runners.model.InitializationError
getRunner
protected Runner getRunner(org.junit.runners.model.RunnerBuilder builder, Class<?> testClass) throws Throwable
- Create a single-class runner for
testClass, usingbuilder - 抛出异常:
Throwable
|
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||