CDI Injection for clients of EJBContainer and tests using ApplicationComposer
-----------------------------------------------------------------------------
Key: OPENEJB-1571
URL: https://issues.apache.org/jira/browse/OPENEJB-1571
Project: OpenEJB
Issue Type: New Feature
Reporter: David Blevins
Assignee: David Blevins
Fix For: 4.0-beta-1
ApplicationComposer example:
@RunWith(ApplicationComposer.class)
public class BasicObserverTest {
@Inject
private BeanManager beanManager;
@Test
public void test() throws Exception {
assertNotNull(beanManager);
}
}
Embedded EJBContainer API example:
public class MovieTest extends TestCase {
@Inject
private BeanManager beanManager;
@Test
public void test() throws Exception {
assertNotNull(beanManager);
}
@Before
protected void setUp() throws Exception {
EJBContainer.createEJBContainer().getContext().bind("inject", this);
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira