Java Reference
In-Depth Information
Configuring the pom.xml file
The first thing that is necessary to include in order to run an Arquillian test is the junit
dependency, which is required to run our unit tests:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>4.11</version>
</dependency>
In earlier chapters, we introduced the term Bill of Materials ( BOM ). Now, we will use the
Arquillian BOM in order to import versions of all Arquillian-related dependencies:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.1.5.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
We're using Arquillian with JUnit (like mentioned before other possibilities are TestNG ,
Spock , JBehave , and Cucumber ) so we need to include the appropriate dependency:
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
After being done with the basic dependencies, we now have to specify the container against
which the tests will be run. Container adapters are available for the more important Java EE
Application Servers (WildFly, Glassfish, WebLogic, and WebSphere), as well as for some
Search WWH ::




Custom Search