Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1571

CDI Injection for clients of EJBContainer and tests using ApplicationComposer

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-beta-1, 4.0.0-beta-2
    • None
    • None

    Description

      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); }

      Attachments

        Activity

          People

            dblevins David Blevins
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: