Search code examples
javastrutsejb-3.0jboss-arquillianjboss-eap-6

EJB test & Arquillian - Struts + JEE6 + EJB3


I work in a old system, with Jboss EAP 6.1 + EJB 3 + Struts... I would like to write tests for this system... I was studying Arquillian, but I don't find any example without CDI and with older technologies ... I want to test this old system and I have EJBs, I need to use container...

Do you think is Arquillian will usefull in my case? What is best way to test EJBs with this technologies ?!

Thanks.


Solution

  • Arquillian fully supports EJB 3.0.

    You can inject your EJBs into the tests. If you are using even older EJB code which does not support injection, you can even use inital context and lookup your EJBs in your tests. I have been thoroughly using Arquillian to test EJBs.