Arquillian –

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 <dependency>
    <groupId>org.jboss.arquillian.protocol</groupId>
    <artifactId>arquillian-protocol-servlet</artifactId>
    <scope>test</scope>
    </dependency>
    is omitted.
Advertisements
This entry was posted in java and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s