Package | Description |
---|---|
org.junit.experimental | |
org.junit.experimental.categories | |
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 | Method and Description |
---|---|
protected Runner |
ParallelComputer.getRunner(RunnerBuilder builder,
Class<?> testClass) |
Runner |
ParallelComputer.getSuite(RunnerBuilder builder,
Class<?>[] classes) |
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 | 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(Class<? extends Runner> runnerClass,
Class<?> testClass) |
Runner |
NullBuilder.runnerForClass(Class<?> each) |
Runner |
SuiteMethodBuilder.runnerForClass(Class<?> each) |
Runner |
JUnit3Builder.runnerForClass(Class<?> testClass) |
Runner |
JUnit4Builder.runnerForClass(Class<?> testClass) |
Runner |
AnnotatedBuilder.runnerForClass(Class<?> testClass) |
Runner |
IgnoredBuilder.runnerForClass(Class<?> testClass) |
Runner |
AllDefaultPossibilitiesBuilder.runnerForClass(Class<?> testClass) |
Modifier and Type | Method and Description |
---|---|
Runner |
AnnotatedBuilder.buildRunner(Class<? extends Runner> runnerClass,
Class<?> testClass) |
Modifier and Type | Method and Description |
---|---|
Runner |
FilterRequest.getRunner() |
Runner |
ClassRequest.getRunner() |
Runner |
SortingRequest.getRunner() |
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,
Class<?> testClass)
Create a single-class runner for
testClass , using builder |
Runner |
Computer.getSuite(RunnerBuilder builder,
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. |
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 | Method and Description |
---|---|
static Runner |
Suite.emptySuite()
Returns an empty suite.
|
Modifier and Type | Method and Description |
---|---|
protected List<Runner> |
Parameterized.getChildren() |
protected 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(Class<?> klass,
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(Class<?> testClass)
Override to calculate the correct runner for a test class at runtime.
|
Runner |
RunnerBuilder.safeRunnerForClass(Class<?> testClass)
Always returns a runner, even if it is just one that prints an error instead of running tests.
|
Modifier and Type | Method and Description |
---|---|
List<Runner> |
RunnerBuilder.runners(Class<?> parent,
Class<?>[] children)
Constructs and returns a list of Runners, one for each child class in
children . |
List<Runner> |
RunnerBuilder.runners(Class<?> parent,
List<Class<?>> children) |
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 . |
Copyright © 2002–2016 JUnit. All rights reserved.