BlockJUnit4ClassRunner in place of JUnit4ClassRunner.@Deprecated public class JUnit4ClassRunner extends Runner implements Filterable, Sortable
| Constructor and Description |
|---|
JUnit4ClassRunner(Class<?> klass)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Annotation[] |
classAnnotations()
Deprecated.
|
protected Object |
createTest()
Deprecated.
|
void |
filter(Filter filter)
Deprecated.
Remove tests that don't pass the parameter
filter. |
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 using
sorter |
protected Annotation[] |
testAnnotations(Method method)
Deprecated.
|
protected String |
testName(Method method)
Deprecated.
|
protected void |
validate()
Deprecated.
|
protected TestMethod |
wrapMethod(Method method)
Deprecated.
|
public JUnit4ClassRunner(Class<?> klass) throws InitializationError
InitializationErrorprotected void validate()
throws InitializationError
InitializationErrorpublic void run(RunNotifier notifier)
Runnerprotected void runMethods(RunNotifier notifier)
public Description getDescription()
getDescription in interface DescribablegetDescription in class RunnerDescription showing the tests to be run by the receiverprotected Annotation[] classAnnotations()
protected String getName()
protected void invokeTestMethod(Method method, RunNotifier notifier)
protected TestMethod wrapMethod(Method method)
protected Description methodDescription(Method method)
protected Annotation[] testAnnotations(Method method)
public void filter(Filter filter) throws NoTestsRemainException
Filterablefilter.filter in interface Filterablefilter - the Filter to applyNoTestsRemainException - if all tests are filtered outpublic void sort(Sorter sorter)
Sortablesorterprotected TestClass getTestClass()
Copyright © 2002–2017 JUnit. All rights reserved.