public class J8BlockJUnit4ClassRunner extends BlockJUnit4ClassRunner
Extension of BlockJUnit4ClassRunner to support the extended test class
model.
To invoke this custom Runner just use the @RunWith
annotation:
@RunWith(J8BlockJUnit4ClassRunner.class)
public class FoobarTest {
[…]
}
RunWith,
J8TestClass| Constructor and Description |
|---|
J8BlockJUnit4ClassRunner(Class<?> clazz)
Creates a
J8BlockJUnit4ClassRunner instance to run the tests of the given Class. |
| Modifier and Type | Method and Description |
|---|---|
protected J8TestClass |
createTestClass(Class<?> testClass)
Returns an extended test class model of the given
Class. |
collectInitializationErrors, 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 J8BlockJUnit4ClassRunner(Class<?> clazz) throws InitializationError
Creates a J8BlockJUnit4ClassRunner instance to run the tests of the given Class.
clazz - the test classInitializationError - if the test class is malformedprotected J8TestClass createTestClass(Class<?> testClass)
Returns an extended test class model of the given Class.
createTestClass in class ParentRunner<FrameworkMethod>testClass - the test classClassCopyright © 2015. All rights reserved.