Package org.junit.runners
package org.junit.runners
Provides standard
Runner
implementations.- Since:
- 4.0
- See Also:
-
ClassDescriptionRunner for use with JUnit 3.8.x-style AllTests classes (those that only implement a static
suite()
method).Implements the JUnit 4 standard test case class model, as defined by the annotations in the org.junit package.Aliases the current default JUnit 4 class runner, for future-proofing.Sort the methods into a specified execution order.The custom runnerParameterized
implements parameterized tests.Annotation forpublic static void
methods which should be executed after evaluating tests with particular parameters.Annotation forpublic static void
methods which should be executed before evaluating tests with particular parameters.Annotation for fields of the test class which will be initialized by the method annotated byParameters
.Annotation for a method which provides parameters to be injected into the test class constructor byParameterized
.Add this annotation to your test class if you want to generate a special runner.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 typeT
.Data structure for ordering ofTestRule
/MethodRule
instances.UsingSuite
as a runner allows you to manually build a suite containing tests from many classes.TheSuiteClasses
annotation specifies the classes to be run when a class annotated with@RunWith(Suite.class)
is run.