Adding Arquillian dependencies to the Maven-based project

The Arquillian dependency entries in your pom.xml file may look like the following:

<dependency> 
  <groupId>junit</groupId> 
  <artifactId>junit</artifactId> 
  <version>4.11</version> 
  <scope>test</scope> 
</dependency> 
<dependency> 
  <groupId>org.jboss.arquillian.junit</groupId> 
  <artifactId>arquillian-junit-container</artifactId> 
  <scope>test</scope> 
</dependency>        
<dependency> 
  <groupId>org.jboss.arquillian.container</groupId> 
  <artifactId>arquillian-glassfish-managed-3.1</artifactId> 
  <version>1.0.0.Final-SNAPSHOT</version> 
  <scope>test</scope> 
</dependency> 
<dependency> 
  <groupId>org.glassfish.jersey.containers</groupId> 
  <artifactId>jersey-container-servlet-core</artifactId> 
  <version>2.0</version> 
  <type>jar</type> 
  <scope>provided</scope> 
</dependency> 

To use the latest release of Arquilian, point your Maven to use a repository hosted on repository.jboss.org. A quick summary of the dependencies set for Arquillian are as follows:

  • The junit and arquillian-junit-container dependency: These are the dependencies for the JUnit and Arquillian JUnit extensions, respectively
  • The arquillian-glassfish-managed dependency: This represents the managed GlassFish server instance for running the integrations tests
  • The jersey-container-servlet-core dependency: This dependency is used for Jersey implementation of the JAX-RS API
The minimum recommended versions of Java and JUnit for using Arquillian are Java 1.6 and JUnit 4.8, respectively.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.233.43