public class CdiTestRunner extends BlockJUnit4ClassRunner
If the underlying container supports it you can even pass in a property file
to the bootstrap. You can configure the name of the configuration file via a
ConfigResolver property named
cdiTestRunnerConfig. By default the name of the config file is
cdiTestRunnerConfig.properties.
| Constructor and Description |
|---|
CdiTestRunner(Class<?> testClass) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createTest() |
static List<ExternalContainer> |
getActiveExternalContainers() |
static Boolean |
isAutomaticScopeHandlingActive() |
protected Statement |
methodInvoker(FrameworkMethod method,
Object test) |
void |
run(RunNotifier runNotifier) |
protected void |
runChild(FrameworkMethod method,
RunNotifier notifier) |
protected Statement |
withAfterClasses(Statement statement) |
protected Statement |
withAfters(FrameworkMethod method,
Object target,
Statement statement) |
protected Statement |
withBeforeClasses(Statement statement) |
protected Statement |
withBefores(FrameworkMethod method,
Object target,
Statement statement) |
protected Statement |
withPotentialTimeout(FrameworkMethod method,
Object test,
Statement next) |
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, methodBlock, possiblyExpectingExceptions, rules, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructorchildrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethodspublic CdiTestRunner(Class<?> testClass) throws InitializationError
InitializationErrorpublic void run(RunNotifier runNotifier)
run in class ParentRunner<FrameworkMethod>protected Statement methodInvoker(FrameworkMethod method, Object test)
methodInvoker in class BlockJUnit4ClassRunnerprotected void runChild(FrameworkMethod method, RunNotifier notifier)
runChild in class BlockJUnit4ClassRunnerprotected Object createTest() throws Exception
createTest in class BlockJUnit4ClassRunnerExceptionprotected Statement withBefores(FrameworkMethod method, Object target, Statement statement)
withBefores in class BlockJUnit4ClassRunnerprotected Statement withAfters(FrameworkMethod method, Object target, Statement statement)
withAfters in class BlockJUnit4ClassRunnerprotected Statement withBeforeClasses(Statement statement)
withBeforeClasses in class ParentRunner<FrameworkMethod>protected Statement withAfterClasses(Statement statement)
withAfterClasses in class ParentRunner<FrameworkMethod>protected Statement withPotentialTimeout(FrameworkMethod method, Object test, Statement next)
withPotentialTimeout in class BlockJUnit4ClassRunnerpublic static Boolean isAutomaticScopeHandlingActive()
public static List<ExternalContainer> getActiveExternalContainers()
Copyright © 2011–2015 The Apache Software Foundation. All rights reserved.