Package org.junit.runner
Class Computer
- java.lang.Object
-
- org.junit.runner.Computer
-
- Direct Known Subclasses:
ParallelComputer
public class Computer extends java.lang.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.- Since:
- 4.6
-
-
Constructor Summary
Constructors Constructor Description Computer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Runner
getRunner(RunnerBuilder builder, java.lang.Class<?> testClass)
Create a single-class runner fortestClass
, usingbuilder
Runner
getSuite(RunnerBuilder builder, java.lang.Class<?>[] classes)
Create a suite forclasses
, building Runners withbuilder
.static Computer
serial()
Returns a new default computer, which runs tests in serial order
-
-
-
Constructor Detail
-
Computer
public Computer()
-
-
Method Detail
-
serial
public static Computer serial()
Returns a new default computer, which runs tests in serial order
-
getSuite
public Runner getSuite(RunnerBuilder builder, java.lang.Class<?>[] classes) throws InitializationError
Create a suite forclasses
, building Runners withbuilder
. Throws an InitializationError if Runner construction fails- Throws:
InitializationError
-
getRunner
protected Runner getRunner(RunnerBuilder builder, java.lang.Class<?> testClass) throws java.lang.Throwable
Create a single-class runner fortestClass
, usingbuilder
- Throws:
java.lang.Throwable
-
-