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, validateZeroArgConstructor
public CdiTestRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public 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.BlockJUnit4ClassRunner
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
runChild
in class org.junit.runners.BlockJUnit4ClassRunner
protected Object createTest() throws Exception
createTest
in class org.junit.runners.BlockJUnit4ClassRunner
Exception
protected 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.BlockJUnit4ClassRunner
protected 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.BlockJUnit4ClassRunner
protected 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.BlockJUnit4ClassRunner
public static Boolean isAutomaticScopeHandlingActive()
public static List<ExternalContainer> getActiveExternalContainers()
Copyright © 2020 The Apache Software Foundation. All rights reserved.