public class JUnit38ClassRunner extends Runner implements Filterable, Orderable
Modifier and Type | Class and Description |
---|---|
private static class |
JUnit38ClassRunner.OldTestClassAdaptingListener |
Constructor and Description |
---|
JUnit38ClassRunner(java.lang.Class<?> klass) |
JUnit38ClassRunner(Test test) |
Modifier and Type | Method and Description |
---|---|
TestListener |
createAdaptingListener(RunNotifier notifier) |
private static java.lang.String |
createSuiteDescription(TestSuite ts) |
void |
filter(Filter filter)
Remove tests that don't pass the parameter
filter . |
private static java.lang.annotation.Annotation[] |
getAnnotations(TestCase test)
Get the annotations associated with given TestCase.
|
Description |
getDescription() |
private Test |
getTest() |
private static Description |
makeDescription(Test test) |
void |
order(Orderer orderer)
Orders the tests using
orderer |
void |
run(RunNotifier notifier)
Run the tests for this runner.
|
private void |
setTest(Test test) |
void |
sort(Sorter sorter)
Sorts the tests using
sorter |
private volatile Test test
public JUnit38ClassRunner(java.lang.Class<?> klass)
public JUnit38ClassRunner(Test test)
public void run(RunNotifier notifier)
Runner
public TestListener createAdaptingListener(RunNotifier notifier)
public Description getDescription()
getDescription
in interface Describable
getDescription
in class Runner
Description
showing the tests to be run by the receiverprivate static Description makeDescription(Test test)
private static java.lang.annotation.Annotation[] getAnnotations(TestCase test)
test
- the TestCase.private static java.lang.String createSuiteDescription(TestSuite ts)
public void filter(Filter filter) throws NoTestsRemainException
Filterable
filter
.filter
in interface Filterable
filter
- the Filter
to applyNoTestsRemainException
- if all tests are filtered outpublic void sort(Sorter sorter)
Sortable
sorter
public void order(Orderer orderer) throws InvalidOrderingException
orderer
order
in interface Orderable
InvalidOrderingException
- if orderer does something invalid (like remove or add
children)private void setTest(Test test)
private Test getTest()