org.junit.internal.runners
Class CompositeRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.internal.runners.CompositeRunner
All Implemented Interfaces:
Filterable, Sortable
Direct Known Subclasses:
Parameterized, Suite

public class CompositeRunner
extends Runner
implements Filterable, Sortable


Constructor Summary
CompositeRunner(java.lang.String name)
           
 
Method Summary
 void add(Runner runner)
           
 void addAll(java.util.List<? extends Runner> runners)
           
 void filter(Filter filter)
          Remove tests that don't pass the parameter filter.
 Description getDescription()
           
protected  java.lang.String getName()
           
 java.util.List<Runner> getRunners()
           
 void run(RunNotifier notifier)
          Run the tests for this runner.
protected  void runChildren(RunNotifier notifier)
           
 void sort(Sorter sorter)
          Sorts the tests using sorter
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeRunner

public CompositeRunner(java.lang.String name)
Method Detail

run

public void run(RunNotifier notifier)
Description copied from class: Runner
Run the tests for this runner.

Specified by:
run in class Runner
Parameters:
notifier - will be notified of events while tests are being run--tests being started, finishing, and failing

runChildren

protected void runChildren(RunNotifier notifier)

getDescription

public Description getDescription()
Specified by:
getDescription in class Runner
Returns:
a Description showing the tests to be run by the receiver

getRunners

public java.util.List<Runner> getRunners()

addAll

public void addAll(java.util.List<? extends Runner> runners)

add

public void add(Runner runner)

filter

public void filter(Filter filter)
            throws NoTestsRemainException
Description copied from interface: Filterable
Remove tests that don't pass the parameter filter.

Specified by:
filter in interface Filterable
Parameters:
filter - the Filter to apply
Throws:
NoTestsRemainException - if all tests are filtered out

getName

protected java.lang.String getName()

sort

public void sort(Sorter sorter)
Description copied from interface: Sortable
Sorts the tests using sorter

Specified by:
sort in interface Sortable
Parameters:
sorter - the Sorter to use for sorting the tests