public class J8Unit4 extends J8BlockJUnit4ClassRunner
Aliases the current default J8Unit class runner, for future-proofing.
Right now, the default J8Unit runner aliases J8BlockJUnit4ClassRunner.
If future versions of J8Unit change the default runner class, they will
also change the definition of this class. Thus, developers should not assume any specific behaviour of this
runner. Instead, the required runner should
be used directly.
To invoke the default J8Unit runner just use the @RunWith annotation:
@RunWith(J8Unit4.class)
public class FoobarTest {
[…]
}
RunWith,
J8TestClass| Constructor and Description |
|---|
J8Unit4(Class<?> clazz)
Constructs a new instance of the default J8Unit runner.
|
createTestClasscollectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, 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 J8Unit4(Class<?> clazz) throws InitializationError
Constructs a new instance of the default J8Unit runner.
clazz - the test classInitializationError - if the test class is malformedCopyright © 2015. All rights reserved.