public class


extends Runner
implements Filterable Sortable
   ↳ org.junit.runner.Runner
     ↳ org.junit.internal.runners.JUnit4ClassRunner

This class is deprecated.
Included for backwards compatibility with JUnit 4.4. Will be removed in the next release. Please use BlockJUnit4ClassRunner in place of JUnit4ClassRunner. This may disappear as soon as 1 April 2009


Public Constructors
JUnit4ClassRunner(Class<?> klass)
Public Methods
void filter(Filter filter)
Remove tests that don't pass the parameter filter.
Description getDescription()
void run(RunNotifier notifier)
Run the tests for this runner.
void sort(Sorter sorter)
Sorts the tests using sorter
Protected Methods
Annotation[] classAnnotations()
Object createTest()
String getName()
TestClass getTestClass()
List<Method> getTestMethods()
void invokeTestMethod(Method method, RunNotifier notifier)
Description methodDescription(Method method)
void runMethods(RunNotifier notifier)
Annotation[] testAnnotations(Method method)
String testName(Method method)
void validate()
TestMethod wrapMethod(Method method)
Inherited Methods
From class org.junit.runner.Runner
From class java.lang.Object
From interface org.junit.runner.Describable
From interface org.junit.runner.manipulation.Filterable
From interface org.junit.runner.manipulation.Sortable

Public Constructors

public JUnit4ClassRunner (Class<?> klass)

Public Methods

public void filter (Filter filter)

Remove tests that don't pass the parameter filter.

filter the Filter to apply

public Description getDescription ()

public void run (RunNotifier notifier)

Run the tests for this runner.

notifier will be notified of events while tests are being run--tests being started, finishing, and failing

public void sort (Sorter sorter)

Sorts the tests using sorter

sorter the Sorter to use for sorting the tests

Protected Methods

protected Annotation[] classAnnotations ()

protected Object createTest ()


protected String getName ()

protected TestClass getTestClass ()

protected List<Method> getTestMethods ()

protected void invokeTestMethod (Method method, RunNotifier notifier)

protected Description methodDescription (Method method)

protected void runMethods (RunNotifier notifier)

protected Annotation[] testAnnotations (Method method)

protected String testName (Method method)

protected void validate ()

protected TestMethod wrapMethod (Method method)