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, withPotentialTimeout
public WeldJUnitRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
testClass
testClass
- org.junit.runners.model.InitializationError
- if the test class is malformed.protected Object createTest() throws Exception
createTest
in class org.junit.runners.BlockJUnit4ClassRunner
Exception
public void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
runChild
in class org.junit.runners.BlockJUnit4ClassRunner
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.