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
InitializationError
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 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
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()
Copyright © 2002–2016 JUnit. All rights reserved.