org.junit.internal.runners
Class JUnit4ClassRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.internal.runners.JUnit4ClassRunner
All Implemented Interfaces:
Describable, Filterable, Sortable

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

@Deprecated
public class JUnit4ClassRunner
extends Runner
implements Filterable, Sortable


Constructor Summary
JUnit4ClassRunner(Class<?> klass)
          Deprecated.  
 
Method Summary
 void filter(Filter filter)
          Deprecated. Remove tests that don't pass the parameter filter.
 Description getDescription()
          Deprecated.  
 void run(RunNotifier notifier)
          Deprecated. Run the tests for this runner.
 void sort(Sorter sorter)
          Deprecated. Sorts the tests using sorter
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnit4ClassRunner

public JUnit4ClassRunner(Class<?> klass)
                  throws InitializationError
Deprecated. 
Throws:
InitializationError
Method Detail

run

public void run(RunNotifier notifier)
Deprecated. 
Description copied from class: Runner
Run the tests for this runner.

Specified by:
run in class Runner
Parameters:
notifier - will be notified of events while tests are being run--tests being started, finishing, and failing

getDescription

public Description getDescription()
Deprecated. 
Specified by:
getDescription in interface Describable
Specified by:
getDescription in class Runner
Returns:
a Description showing the tests to be run by the receiver

filter

public void filter(Filter filter)
            throws NoTestsRemainException
Deprecated. 
Description copied from interface: Filterable
Remove tests that don't pass the parameter filter.

Specified by:
filter in interface Filterable
Parameters:
filter - the Filter to apply
Throws:
NoTestsRemainException - if all tests are filtered out

sort

public void sort(Sorter sorter)
Deprecated. 
Description copied from interface: Sortable
Sorts the tests using sorter

Specified by:
sort in interface Sortable
Parameters:
sorter - the Sorter to use for sorting the tests