Class ParentRunner<T>

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<T>
All Implemented Interfaces:
Describable, Filterable, Orderable, Sortable
Direct Known Subclasses:
BlockJUnit4ClassRunner, Suite

public abstract class ParentRunner<T> extends Runner implements Filterable, Orderable
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. (For BlockJUnit4ClassRunner, T is Method . For Suite, T is Class.) Subclasses must implement finding the children of the node, describing each child, and running each child. ParentRunner will filter and sort children, handle @BeforeClass and @AfterClass methods, handle annotated ClassRules, create a composite Description, and run children sequentially.
Since:
4.5