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 StringvoidRemove tests that don't pass the parameterfilter.private static Annotation[]getAnnotations(TestCase test) Get the annotations associated with given TestCase.private TestgetTest()private static DescriptionmakeDescription(Test test) voidOrders the tests usingorderervoidrun(RunNotifier notifier) Run the tests for this runner.private voidvoidSorts the tests usingsorter
-
Field Details
-
test
-
-
Constructor Details
-
JUnit38ClassRunner
-
JUnit38ClassRunner
-
-
Method Details
-
run
Description copied from class:RunnerRun the tests for this runner. -
createAdaptingListener
-
getDescription
- Specified by:
getDescriptionin interfaceDescribable- Specified by:
getDescriptionin classRunner- Returns:
- a
Descriptionshowing 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:FilterableRemove tests that don't pass the parameterfilter.- Specified by:
filterin interfaceFilterable- Parameters:
filter- theFilterto apply- Throws:
NoTestsRemainException- if all tests are filtered out
-
sort
Description copied from interface:SortableSorts the tests usingsorter -
order
Orders the tests usingorderer- Specified by:
orderin interfaceOrderable- Throws:
InvalidOrderingException- if orderer does something invalid (like remove or add children)- Since:
- 4.13
-
setTest
-
getTest
-