org.junit.internal.runners
Class JUnit38ClassRunner
java.lang.Object
org.junit.runner.Runner
org.junit.internal.runners.JUnit38ClassRunner
- All Implemented Interfaces:
- Describable, Filterable, Sortable
- Direct Known Subclasses:
- SuiteMethod
public class JUnit38ClassRunner
- extends Runner
- implements Filterable, Sortable
JUnit38ClassRunner
public JUnit38ClassRunner(Class<?> klass)
JUnit38ClassRunner
public JUnit38ClassRunner(Test test)
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
createAdaptingListener
public TestListener createAdaptingListener(RunNotifier notifier)
getDescription
public Description getDescription()
- Specified by:
getDescription in interface Describable- Specified by:
getDescription in class Runner
- Returns:
- a
Description showing the tests to be run by the receiver
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
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