Describable
, Filterable
, Sortable
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 | Description |
---|---|
JUnit4(java.lang.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, withPotentialTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
public JUnit4(java.lang.Class<?> klass) throws InitializationError
InitializationError