public class WeldJUnitRunner
extends org.junit.runners.BlockJUnit4ClassRunner
The test class can also use all CDI constructs (like @Inject). For example the test can inject BeanManager: ...
| Constructor and Description |
|---|
WeldJUnitRunner(Class<?> testClass)
Creates a WeldJUnitRunner to run
testClass |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createTest() |
void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic WeldJUnitRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
testClasstestClass - org.junit.runners.model.InitializationError - if the test class is malformed.protected Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionpublic void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.BlockJUnit4ClassRunnerCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.