Package | Description |
---|---|
junit.framework |
Provides JUnit v3.x core classes.
|
org.junit.experimental | |
org.junit.experimental.categories | |
org.junit.experimental.max | |
org.junit.experimental.runners | |
org.junit.experimental.theories | |
org.junit.internal.builders | |
org.junit.internal.requests |
Provides implementations of
Request . |
org.junit.internal.runners |
Provides implementations of
Runner |
org.junit.runner |
Provides classes used to describe, collect, run and analyze multiple tests.
|
org.junit.runners |
Provides standard
Runner implementations. |
org.junit.runners.model | |
org.junit.runners.parameterized |
Modifier and Type | Field and Description |
---|---|
private Runner |
JUnit4TestAdapter.fRunner |
Modifier and Type | Method and Description |
---|---|
protected Runner |
ParallelComputer.getRunner(RunnerBuilder builder,
java.lang.Class<?> testClass) |
Runner |
ParallelComputer.getSuite(RunnerBuilder builder,
java.lang.Class<?>[] classes) |
private static Runner |
ParallelComputer.parallelize(Runner runner) |
Modifier and Type | Method and Description |
---|---|
private static Runner |
ParallelComputer.parallelize(Runner runner) |
Modifier and Type | Class and Description |
---|---|
class |
Categories
From a given set of test classes, runs only the classes and methods that are
annotated with either the category given with the @IncludeCategory
annotation, or a subtype of that category.
|
Modifier and Type | Method and Description |
---|---|
private Runner |
MaxCore.buildRunner(Description each) |
Modifier and Type | Class and Description |
---|---|
class |
Enclosed
If you put tests in inner classes, Ant, for example, won't find them.
|
Modifier and Type | Class and Description |
---|---|
class |
Theories
The Theories runner allows to test a certain functionality against a subset of an infinite set of data points.
|
Modifier and Type | Class and Description |
---|---|
class |
IgnoredClassRunner |
Modifier and Type | Method and Description |
---|---|
Runner |
AnnotatedBuilder.buildRunner(java.lang.Class<? extends Runner> runnerClass,
java.lang.Class<?> testClass) |
Runner |
AllDefaultPossibilitiesBuilder.runnerForClass(java.lang.Class<?> testClass) |
Runner |
IgnoredBuilder.runnerForClass(java.lang.Class<?> testClass) |
Runner |
NullBuilder.runnerForClass(java.lang.Class<?> each) |
Runner |
AnnotatedBuilder.runnerForClass(java.lang.Class<?> testClass) |
Runner |
SuiteMethodBuilder.runnerForClass(java.lang.Class<?> each) |
Runner |
JUnit3Builder.runnerForClass(java.lang.Class<?> testClass) |
Runner |
JUnit4Builder.runnerForClass(java.lang.Class<?> testClass) |
Modifier and Type | Method and Description |
---|---|
Runner |
AnnotatedBuilder.buildRunner(java.lang.Class<? extends Runner> runnerClass,
java.lang.Class<?> testClass) |
Modifier and Type | Field and Description |
---|---|
private Runner |
MemoizingRequest.runner |
Modifier and Type | Method and Description |
---|---|
protected abstract Runner |
MemoizingRequest.createRunner()
Creates the
Runner to return from MemoizingRequest.getRunner() . |
protected Runner |
ClassRequest.createRunner() |
protected Runner |
OrderingRequest.createRunner() |
Runner |
SortingRequest.getRunner() |
Runner |
MemoizingRequest.getRunner() |
Runner |
FilterRequest.getRunner() |
Runner |
ClassRequest.CustomSuiteMethodBuilder.runnerForClass(java.lang.Class<?> testClass) |
Modifier and Type | Class and Description |
---|---|
class |
ErrorReportingRunner |
class |
JUnit38ClassRunner |
class |
JUnit4ClassRunner
Deprecated.
Included for backwards compatibility with JUnit 4.4. Will be
removed in the next major release. Please use
BlockJUnit4ClassRunner in place of JUnit4ClassRunner . |
class |
SuiteMethod
Runner for use with JUnit 3.8.x-style AllTests classes
(those that only implement a static
suite()
method). |
Modifier and Type | Method and Description |
---|---|
abstract Runner |
Request.getRunner()
Returns a
Runner for this Request |
protected Runner |
Computer.getRunner(RunnerBuilder builder,
java.lang.Class<?> testClass)
Create a single-class runner for
testClass , using builder |
Runner |
Computer.getSuite(RunnerBuilder builder,
java.lang.Class<?>[] classes)
Create a suite for
classes , building Runners with builder . |
Modifier and Type | Method and Description |
---|---|
Result |
JUnitCore.run(Runner runner)
Do not use.
|
static Request |
Request.runner(Runner runner) |
Modifier and Type | Class and Description |
---|---|
class |
AllTests
Runner for use with JUnit 3.8.x-style AllTests classes
(those that only implement a static
suite()
method). |
class |
BlockJUnit4ClassRunner
Implements the JUnit 4 standard test case class model, as defined by the
annotations in the org.junit package.
|
class |
JUnit4
Aliases the current default JUnit 4 class runner, for future-proofing.
|
class |
Parameterized
The custom runner
Parameterized implements parameterized tests. |
private static class |
Parameterized.AssumptionViolationRunner |
class |
ParentRunner<T>
Provides most of the functionality specific to a Runner that implements a
"parent node" in the test tree, with children defined by objects of some data
type
T . |
class |
Suite
Using
Suite as a runner allows you to manually
build a suite containing tests from many classes. |
Modifier and Type | Field and Description |
---|---|
private Runner |
Parameterized.RunnersFactory.runnerOverride |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Runner> |
Suite.runners |
Modifier and Type | Method and Description |
---|---|
static Runner |
Suite.emptySuite()
Returns an empty suite.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<Runner> |
Parameterized.RunnersFactory.createRunners() |
private java.util.List<Runner> |
Parameterized.RunnersFactory.createRunnersForParameters(java.lang.Iterable<java.lang.Object> allParameters,
java.lang.String namePattern,
ParametersRunnerFactory runnerFactory) |
protected java.util.List<Runner> |
Suite.getChildren() |
Modifier and Type | Method and Description |
---|---|
protected Description |
Suite.describeChild(Runner child) |
protected void |
Suite.runChild(Runner runner,
RunNotifier notifier) |
Constructor and Description |
---|
Suite(java.lang.Class<?> klass,
java.util.List<Runner> runners)
Called by this class and subclasses once the runners making up the suite have been determined
|
Modifier and Type | Method and Description |
---|---|
abstract Runner |
RunnerBuilder.runnerForClass(java.lang.Class<?> testClass)
Override to calculate the correct runner for a test class at runtime.
|
Runner |
RunnerBuilder.safeRunnerForClass(java.lang.Class<?> testClass)
Always returns a runner for the given test class.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<Runner> |
RunnerBuilder.runners(java.lang.Class<?>[] children) |
java.util.List<Runner> |
RunnerBuilder.runners(java.lang.Class<?> parent,
java.lang.Class<?>[] children)
Constructs and returns a list of Runners, one for each child class in
children . |
java.util.List<Runner> |
RunnerBuilder.runners(java.lang.Class<?> parent,
java.util.List<java.lang.Class<?>> children) |
Modifier and Type | Method and Description |
---|---|
private void |
RunnerBuilder.configureRunner(Runner runner) |
Modifier and Type | Class and Description |
---|---|
class |
BlockJUnit4ClassRunnerWithParameters
A
BlockJUnit4ClassRunner with parameters support. |
Modifier and Type | Method and Description |
---|---|
Runner |
BlockJUnit4ClassRunnerWithParametersFactory.createRunnerForTestWithParameters(TestWithParameters test) |
Runner |
ParametersRunnerFactory.createRunnerForTestWithParameters(TestWithParameters test)
Returns a runner for the specified
TestWithParameters . |