Computer (JUnit API)

Junit


org.junit.runner Class Computer

java.lang.Object
  extended by org.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 with builder. 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, using builder

抛出异常:
Throwable