Package org.junit.internal.runners
Class JUnit4ClassRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.internal.runners.JUnit4ClassRunner
-
- All Implemented Interfaces:
Describable
,Filterable
,Sortable
@Deprecated public class JUnit4ClassRunner extends Runner implements Filterable, Sortable
Deprecated.Included for backwards compatibility with JUnit 4.4. Will be removed in the next major release. Please useBlockJUnit4ClassRunner
in place ofJUnit4ClassRunner
.
-
-
Constructor Summary
Constructors Constructor Description JUnit4ClassRunner(Class<?> klass)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Annotation[]
classAnnotations()
Deprecated.protected Object
createTest()
Deprecated.void
filter(Filter filter)
Deprecated.Remove tests that don't pass the parameterfilter
.Description
getDescription()
Deprecated.protected String
getName()
Deprecated.protected TestClass
getTestClass()
Deprecated.protected List<Method>
getTestMethods()
Deprecated.protected void
invokeTestMethod(Method method, RunNotifier notifier)
Deprecated.protected Description
methodDescription(Method method)
Deprecated.void
run(RunNotifier notifier)
Deprecated.Run the tests for this runner.protected void
runMethods(RunNotifier notifier)
Deprecated.void
sort(Sorter sorter)
Deprecated.Sorts the tests usingsorter
protected Annotation[]
testAnnotations(Method method)
Deprecated.protected String
testName(Method method)
Deprecated.protected void
validate()
Deprecated.protected TestMethod
wrapMethod(Method method)
Deprecated.
-
-
-
Constructor Detail
-
JUnit4ClassRunner
public JUnit4ClassRunner(Class<?> klass) throws InitializationError
Deprecated.- Throws:
InitializationError
-
-
Method Detail
-
validate
protected void validate() throws InitializationError
Deprecated.- Throws:
InitializationError
-
run
public void run(RunNotifier notifier)
Deprecated.Description copied from class:Runner
Run the tests for this runner.
-
runMethods
protected void runMethods(RunNotifier notifier)
Deprecated.
-
getDescription
public Description getDescription()
Deprecated.- Specified by:
getDescription
in interfaceDescribable
- Specified by:
getDescription
in classRunner
- Returns:
- a
Description
showing the tests to be run by the receiver
-
classAnnotations
protected Annotation[] classAnnotations()
Deprecated.
-
getName
protected String getName()
Deprecated.
-
invokeTestMethod
protected void invokeTestMethod(Method method, RunNotifier notifier)
Deprecated.
-
wrapMethod
protected TestMethod wrapMethod(Method method)
Deprecated.
-
methodDescription
protected Description methodDescription(Method method)
Deprecated.
-
testAnnotations
protected Annotation[] testAnnotations(Method method)
Deprecated.
-
filter
public void filter(Filter filter) throws NoTestsRemainException
Deprecated.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)
Deprecated.Description copied from interface:Sortable
Sorts the tests usingsorter
-
getTestClass
protected TestClass getTestClass()
Deprecated.
-
-