public final class JUnit4 extends BlockJUnit4ClassRunner
@RunWith(JUnit4.class), not,
for example in JUnit 4.5, @RunWith(BlockJUnit4ClassRunner.class).
This is the only way this class should be used--any extension that
depends on the implementation details of this class is likely to break
in future versions.| Constructor and Description |
|---|
JUnit4(Class<?> klass)
Constructs a new instance of the default runner
|
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutchildrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClassespublic JUnit4(Class<?> klass) throws InitializationError
InitializationError