To setup Arquillian, using the tutorial it highlights that there are a number of steps to be performed.
In trying to get the testing to work on JBoss EAP 6.2 (which is the equivalent of JBoss AS 7) there were a couple of things to setup – and though covered in the guide – here is a quick summary.
- In “arquillian.xml” ensure that <defaultProtocol type=”Servlet 3.0″ /> is setup. If not, then the application will compile, deploy, and you will get an error related to “java.lang.IllegalStateException: Cannot obtain Arquillian config for” the application.
- Also in “arquillian.xml”, for managed jboss instances, you define the path to be: <property name=”jbossHome”>c:\dev\jboss-eap-6.2\</property>. If this is not included then the JBOSS_HOME from the environmental settings will be used.
- In the “pom.xml” when teh rest of the dependecies are being specified, an error “Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor” will result, if the dependency