0 Replies Latest reply on Jul 8, 2019 6:07 AM by Bertrand Fontaine

    Bootstrapping an Arquillian embedded container from an application

    Bertrand Fontaine Newbie

      Hi All,

       

      I need to integrate Arquillian embedded with an existing/homegrown test framework, not based on JUnit.

       

      What I need to test is a CDI-based API we built for a project. So far, I integrated our test framework directly with Weld and this works fine. What I basically do is a new Weld().initialize().select(<CDI bean class>).get() in order to get a reference to a CDI bean to exercise.

       

      Now, I would like to implement the same mechanics using Arquillian so that I can test the API on Glassfish embedded and others.

       

      How would I bootstrap an Arquillian embedded container from an application (not JUnit) in order to get a reference to a CDI bean to test?

       

      Thank you for your help,

       

      Bertrand