public class RedTestRunner
extends org.junit.runners.BlockJUnit4ClassRunner
BlockJUnit4ClassRunner
behaviour, so that when a Test
method is called, a single RedTestContext
parameter is allowed.
If a RedTestContext
parameter does not exist, the original BlockJUnit4ClassRunner
behaviour is invoked.
If a RedTestContext
parameter exists, a RedTestContext
instance is created
prior to the test, then the test method is invoked with the new context instance.
Once the test method returns, the runner waits for all the context forks to successfully
finish (see RedTestContext.fork()
), and eventually it looks for un-thrown assertion errors.Constructor and Description |
---|
RedTestRunner(Class<?> aClass) |
Modifier and Type | Method and Description |
---|---|
protected org.junit.runners.model.Statement |
methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test) |
protected void |
validateTestMethods(List<Throwable> errors) |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
public RedTestRunner(Class<?> aClass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method, Object test)
methodInvoker
in class org.junit.runners.BlockJUnit4ClassRunner
Copyright © 2017. All rights reserved.