public class CDIInjectionEnricher extends Object implements TestEnricher
Constructor and Description |
---|
CDIInjectionEnricher() |
Modifier and Type | Method and Description |
---|---|
void |
enrich(Object testCase)
Extension point to add features to the a Test class instance.
IE. |
javax.enterprise.inject.spi.BeanManager |
getBeanManager() |
javax.enterprise.context.spi.CreationalContext<Object> |
getCreationalContext() |
protected void |
injectClass(Object testCase) |
protected void |
injectNonContextualInstance(javax.enterprise.inject.spi.BeanManager manager,
Object instance) |
Object[] |
resolve(Method method)
Extension point to add features to the test method arguments.
IE. |
public javax.enterprise.inject.spi.BeanManager getBeanManager()
public javax.enterprise.context.spi.CreationalContext<Object> getCreationalContext()
public void enrich(Object testCase)
TestEnricher
enrich
in interface TestEnricher
testCase
- The test case instancepublic Object[] resolve(Method method)
TestEnricher
TestEnricher
.resolve
in interface TestEnricher
protected void injectClass(Object testCase)
protected void injectNonContextualInstance(javax.enterprise.inject.spi.BeanManager manager, Object instance)
Copyright © 2017 JBoss by Red Hat. All rights reserved.