public class CdiTestRunner
extends org.junit.runners.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 org.junit.runners.model.Statement |
methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test) |
void |
run(org.junit.runner.notification.RunNotifier runNotifier) |
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withAfters(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withBeforeClasses(org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withBefores(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withPotentialTimeout(org.junit.runners.model.FrameworkMethod method,
Object test,
org.junit.runners.model.Statement next) |
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, methodBlock, possiblyExpectingExceptions, rules, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructorpublic CdiTestRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorpublic void run(org.junit.runner.notification.RunNotifier runNotifier)
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunnerprotected void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.BlockJUnit4ClassRunnerprotected Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionprotected org.junit.runners.model.Statement withBefores(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement)
withBefores in class org.junit.runners.BlockJUnit4ClassRunnerprotected org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement)
withAfters in class org.junit.runners.BlockJUnit4ClassRunnerprotected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement)
withBeforeClasses in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
withAfterClasses in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected org.junit.runners.model.Statement withPotentialTimeout(org.junit.runners.model.FrameworkMethod method,
Object test,
org.junit.runners.model.Statement next)
withPotentialTimeout in class org.junit.runners.BlockJUnit4ClassRunnerpublic static Boolean isAutomaticScopeHandlingActive()
public static List<ExternalContainer> getActiveExternalContainers()
Copyright © 2015 The Apache Software Foundation. All rights reserved.