BlockJUnit4ClassRunner
in place of JUnit4ClassRunner
.@Deprecated public class JUnit4ClassRunner extends Runner implements Filterable, Sortable
Modifier and Type | Field and Description |
---|---|
private TestClass |
testClass
Deprecated.
|
private java.util.List<java.lang.reflect.Method> |
testMethods
Deprecated.
|
Constructor and Description |
---|
JUnit4ClassRunner(java.lang.Class<?> klass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.annotation.Annotation[] |
classAnnotations()
Deprecated.
|
protected java.lang.Object |
createTest()
Deprecated.
|
void |
filter(Filter filter)
Deprecated.
Remove tests that don't pass the parameter
filter . |
Description |
getDescription()
Deprecated.
|
protected java.lang.String |
getName()
Deprecated.
|
protected TestClass |
getTestClass()
Deprecated.
|
protected java.util.List<java.lang.reflect.Method> |
getTestMethods()
Deprecated.
|
protected void |
invokeTestMethod(java.lang.reflect.Method method,
RunNotifier notifier)
Deprecated.
|
protected Description |
methodDescription(java.lang.reflect.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 using
sorter |
private void |
testAborted(RunNotifier notifier,
Description description,
java.lang.Throwable e)
Deprecated.
|
protected java.lang.annotation.Annotation[] |
testAnnotations(java.lang.reflect.Method method)
Deprecated.
|
protected java.lang.String |
testName(java.lang.reflect.Method method)
Deprecated.
|
protected void |
validate()
Deprecated.
|
protected TestMethod |
wrapMethod(java.lang.reflect.Method method)
Deprecated.
|
private final java.util.List<java.lang.reflect.Method> testMethods
private TestClass testClass
public JUnit4ClassRunner(java.lang.Class<?> klass) throws InitializationError
InitializationError
protected java.util.List<java.lang.reflect.Method> getTestMethods()
protected void validate() throws InitializationError
InitializationError
public void run(RunNotifier notifier)
Runner
protected void runMethods(RunNotifier notifier)
public Description getDescription()
getDescription
in interface Describable
getDescription
in class Runner
Description
showing the tests to be run by the receiverprotected java.lang.annotation.Annotation[] classAnnotations()
protected java.lang.String getName()
protected java.lang.Object createTest() throws java.lang.Exception
java.lang.Exception
protected void invokeTestMethod(java.lang.reflect.Method method, RunNotifier notifier)
private void testAborted(RunNotifier notifier, Description description, java.lang.Throwable e)
protected TestMethod wrapMethod(java.lang.reflect.Method method)
protected java.lang.String testName(java.lang.reflect.Method method)
protected Description methodDescription(java.lang.reflect.Method method)
protected java.lang.annotation.Annotation[] testAnnotations(java.lang.reflect.Method method)
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
protected TestClass getTestClass()