Java Reference
In-Depth Information
Okay, now let's see what core dependencies are needed to run the Arquillian test
case.
Configuring the pom.xml file
The first thing that is necessary to include in order to run an Arquillian test is the ju-
nit dependency that is required to run our unit tests:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
As you can see, this dependency (just like the following ones) bears the test scope;
this means that it will be used by Maven when running tests, so it will not add this
library to the final artifact.
Note
This dependency as part of the JBoss Bill of Materials ( BOM ) does not need to
state the dependency version. The same applies for Arquillian-specific depend-
encies.
Next, if you want to test enterprise features such as EJB and the Java Transaction
API ( JTA ), you need to include the org.jboss.arquillian.junit dependency
as well:
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
Search WWH ::




Custom Search