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 useBlockJUnit4ClassRunnerin place ofJUnit4ClassRunner.
-
-
Constructor Summary
Constructors Constructor Description JUnit4ClassRunner(java.lang.Class<?> klass)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.annotation.Annotation[]classAnnotations()Deprecated.protected java.lang.ObjectcreateTest()Deprecated.voidfilter(Filter filter)Deprecated.Remove tests that don't pass the parameterfilter.DescriptiongetDescription()Deprecated.protected java.lang.StringgetName()Deprecated.protected TestClassgetTestClass()Deprecated.protected java.util.List<java.lang.reflect.Method>getTestMethods()Deprecated.protected voidinvokeTestMethod(java.lang.reflect.Method method, RunNotifier notifier)Deprecated.protected DescriptionmethodDescription(java.lang.reflect.Method method)Deprecated.voidrun(RunNotifier notifier)Deprecated.Run the tests for this runner.protected voidrunMethods(RunNotifier notifier)Deprecated.voidsort(Sorter sorter)Deprecated.Sorts the tests usingsorterprotected java.lang.annotation.Annotation[]testAnnotations(java.lang.reflect.Method method)Deprecated.protected java.lang.StringtestName(java.lang.reflect.Method method)Deprecated.protected voidvalidate()Deprecated.protected TestMethodwrapMethod(java.lang.reflect.Method method)Deprecated.
-
-
-
Constructor Detail
-
JUnit4ClassRunner
public JUnit4ClassRunner(java.lang.Class<?> klass) throws InitializationErrorDeprecated.- Throws:
InitializationError
-
-
Method Detail
-
getTestMethods
protected java.util.List<java.lang.reflect.Method> getTestMethods()
Deprecated.
-
validate
protected void validate() throws InitializationErrorDeprecated.- Throws:
InitializationError
-
run
public void run(RunNotifier notifier)
Deprecated.Description copied from class:RunnerRun the tests for this runner.
-
runMethods
protected void runMethods(RunNotifier notifier)
Deprecated.
-
getDescription
public Description getDescription()
Deprecated.- Specified by:
getDescriptionin interfaceDescribable- Specified by:
getDescriptionin classRunner- Returns:
- a
Descriptionshowing the tests to be run by the receiver
-
classAnnotations
protected java.lang.annotation.Annotation[] classAnnotations()
Deprecated.
-
getName
protected java.lang.String getName()
Deprecated.
-
createTest
protected java.lang.Object createTest() throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
invokeTestMethod
protected void invokeTestMethod(java.lang.reflect.Method method, RunNotifier notifier)Deprecated.
-
wrapMethod
protected TestMethod wrapMethod(java.lang.reflect.Method method)
Deprecated.
-
testName
protected java.lang.String testName(java.lang.reflect.Method method)
Deprecated.
-
methodDescription
protected Description methodDescription(java.lang.reflect.Method method)
Deprecated.
-
testAnnotations
protected java.lang.annotation.Annotation[] testAnnotations(java.lang.reflect.Method method)
Deprecated.
-
filter
public void filter(Filter filter) throws NoTestsRemainException
Deprecated.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
public void sort(Sorter sorter)
Deprecated.Description copied from interface:SortableSorts the tests usingsorter
-
getTestClass
protected TestClass getTestClass()
Deprecated.
-
-