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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAdaptingListener
(RunNotifier notifier) private static String
void
Remove tests that don't pass the parameterfilter
.private static Annotation[]
getAnnotations
(TestCase test) Get the annotations associated with given TestCase.private Test
getTest()
private static Description
makeDescription
(Test test) void
Orders the tests usingorderer
void
run
(RunNotifier notifier) Run the tests for this runner.private void
void
Sorts the tests usingsorter
-
Field Details
-
test
-
-
Constructor Details
-
JUnit38ClassRunner
-
JUnit38ClassRunner
-
-
Method Details
-
run
Description copied from class:Runner
Run the tests for this runner. -
createAdaptingListener
-
getDescription
- Specified by:
getDescription
in interfaceDescribable
- Specified by:
getDescription
in classRunner
- Returns:
- a
Description
showing the tests to be run by the receiver
-
makeDescription
-
getAnnotations
Get the annotations associated with given TestCase.- Parameters:
test
- the TestCase.
-
createSuiteDescription
-
filter
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
Description copied from interface:Sortable
Sorts the tests usingsorter
-
order
Orders the tests usingorderer
- Specified by:
order
in interfaceOrderable
- Throws:
InvalidOrderingException
- if orderer does something invalid (like remove or add children)- Since:
- 4.13
-
setTest
-
getTest
-