i am looking for a solution to test my dataservices project where i have only all my EJBs, and i found Arquillian , Jboss-EJB-Embedded.
The first one donsn't works because it gives me an error whitch i can't solve it so i passed to the second solution (Embedded).
I add to my pom :
Note : i am working with jboss EAP6 and i found on the net this tuto: http://stackoverflow.com/questions/553031/what-is-the-best-way-to-unit-test-a-ejb3-component-without-having-to-deploy-the , but my maven didn't found the dependencies.
So when i make clean install to my pom project i gives an error in one of my util class :
CollectionUtils.isNotEmpty((Collection) parameter); // the message Error : The method isNotEmpty(Collection) is undefined for the type CollectionUtils
and to use the CollectionUtils i must import in my class : import org.apache.commons.collections.CollectionUtils; and i worked good before adding the dependencies of Embedded jboss for the Junit test EJB3 and when i remove the dependency : thirdparty-all the error disappears.
I believe that there is a conflict between thirdparty-all and org.apache.commons.collections , but I cannot raise org.apache.commons.collections because others classs in my project his need they components.
Thx a lot.