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