public class BuckBlockJUnit4ClassRunner extends BlockJUnit4ClassRunner
defaultTestTimeoutMillis passed to the constructor is non-zero, then it will be
used in place of Test.timeout() if Test.timeout() returns zero.
The superclass, BlockJUnit4ClassRunner, was introduced in JUnit 4.5 as a published API
that was designed to be extended.
This runner also creates Descriptions that allow JUnitRunner to filter which test-methods to run and should be forced into the test code path whenever test-selectors are in use.
| Constructor and Description |
|---|
BuckBlockJUnit4ClassRunner(Class<?> klass,
long defaultTestTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectInitializationErrors(List<Throwable> errors)
Override default init error collector so that class without any test methods will pass
|
protected Object |
createTest() |
protected Statement |
methodBlock(FrameworkMethod method)
Override the default timeout behavior so that when no timeout is specified in the
Test
annotation, the timeout specified by the constructor will be used (if it has been set). |
computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutchildrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClassespublic BuckBlockJUnit4ClassRunner(Class<?> klass, long defaultTestTimeoutMillis) throws InitializationError
InitializationErrorprotected Object createTest() throws Exception
createTest in class BlockJUnit4ClassRunnerExceptionprotected Statement methodBlock(FrameworkMethod method)
Test
annotation, the timeout specified by the constructor will be used (if it has been set).methodBlock in class BlockJUnit4ClassRunnerprotected void collectInitializationErrors(List<Throwable> errors)
collectInitializationErrors in class BlockJUnit4ClassRunner