org.junit.runners
Class BlockJUnit4ClassRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
All Implemented Interfaces:
Describable, Filterable, Sortable
Direct Known Subclasses:
JUnit4, Theories

public class BlockJUnit4ClassRunner
extends ParentRunner<FrameworkMethod>

Implements the JUnit 4 standard test case class model, as defined by the annotations in the org.junit package. Many users will never notice this class: it is now the default test class runner, but it should have exactly the same behavior as the old test class runner (JUnit4ClassRunner). BlockJUnit4ClassRunner has advantages for writers of custom JUnit runners that are slight changes to the default behavior, however:


Constructor Summary
BlockJUnit4ClassRunner(Class<?> klass)
          Creates a BlockJUnit4ClassRunner to run klass
 
Method Summary
 
Methods inherited from class org.junit.runners.ParentRunner
filter, getDescription, getTestClass, run, setScheduler, sort
 
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

BlockJUnit4ClassRunner

public BlockJUnit4ClassRunner(Class<?> klass)
                       throws InitializationError
Creates a BlockJUnit4ClassRunner to run klass

Throws:
InitializationError - if the test class is malformed.