Package org.junit.internal.runners
Class JUnit38ClassRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.internal.runners.JUnit38ClassRunner
-
- All Implemented Interfaces:
Describable
,Filterable
,Orderable
,Sortable
- Direct Known Subclasses:
SuiteMethod
public class JUnit38ClassRunner extends Runner implements Filterable, Orderable
-
-
Constructor Summary
Constructors Constructor Description JUnit38ClassRunner(java.lang.Class<?> klass)
JUnit38ClassRunner(Test test)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestListener
createAdaptingListener(RunNotifier notifier)
void
filter(Filter filter)
Remove tests that don't pass the parameterfilter
.Description
getDescription()
void
order(Orderer orderer)
Orders the tests usingorderer
void
run(RunNotifier notifier)
Run the tests for this runner.void
sort(Sorter sorter)
Sorts the tests usingsorter
-
-
-
Constructor Detail
-
JUnit38ClassRunner
public JUnit38ClassRunner(java.lang.Class<?> klass)
-
JUnit38ClassRunner
public JUnit38ClassRunner(Test test)
-
-
Method Detail
-
run
public void run(RunNotifier notifier)
Description copied from class:Runner
Run the tests for this runner.
-
createAdaptingListener
public TestListener createAdaptingListener(RunNotifier notifier)
-
getDescription
public Description getDescription()
- Specified by:
getDescription
in interfaceDescribable
- Specified by:
getDescription
in classRunner
- 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 parameterfilter
.- Specified by:
filter
in interfaceFilterable
- Parameters:
filter
- theFilter
to apply- Throws:
NoTestsRemainException
- if all tests are filtered out
-
sort
public void sort(Sorter sorter)
Description copied from interface:Sortable
Sorts the tests usingsorter
-
order
public void order(Orderer orderer) throws InvalidOrderingException
Orders the tests usingorderer
- Specified by:
order
in interfaceOrderable
- Throws:
InvalidOrderingException
- if orderer does something invalid (like remove or add children)- Since:
- 4.13
-
-