org.junit.runner.manipulation.Sortable |
Known Indirect Subclasses
AllTests,
BlockJUnit4ClassRunner,
Categories,
Enclosed,
JUnit38ClassRunner,
JUnit4,
JUnit4ClassRunner,
JUnit4TestAdapter,
Parameterized,
ParentRunner<T>,
Suite,
SuiteMethod,
Theories
AllTests |
Runner for use with JUnit 3.8.x-style AllTests classes
(those that only implement a static suite()
method). |
BlockJUnit4ClassRunner |
Implements the JUnit 4 standard test case class model, as defined by the
annotations in the org.junit package. |
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. |
Enclosed |
If you put tests in inner classes, Ant, for example, won't find them. |
JUnit38ClassRunner |
|
JUnit4 |
Aliases the current default JUnit 4 class runner, for future-proofing. |
JUnit4ClassRunner |
This class is deprecated.
Included for backwards compatibility with JUnit 4.4. Will be
removed in the next release. Please use
BlockJUnit4ClassRunner in place of JUnit4ClassRunner .
This may disappear as soon as 1 April 2009
|
JUnit4TestAdapter |
|
Parameterized |
The custom runner Parameterized implements parameterized tests. |
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 . |
Suite |
Using Suite as a runner allows you to manually
build a suite containing tests from many classes. |
SuiteMethod |
Runner for use with JUnit 3.8.x-style AllTests classes
(those that only implement a static suite()
method). |
Theories |
|
|
Class Overview
Interface for runners that allow sorting of tests. By sorting tests based on when they last failed, most recently
failed first, you can reduce the average time to the first test failing. Test sorting should not be used to
cope with order dependencies between tests. Tests that are isolated from each other are less
expensive to maintain and can be run individually.
Summary
Public Methods |
abstract
void
|
sort(Sorter sorter)
Sorts the tests using sorter
|
Public Methods
public
abstract
void
sort
(Sorter sorter)
Sorts the tests using sorter
Parameters
sorter
| the Sorter to use for sorting the tests
|