Java Reference
In-Depth Information
will use the provided scope for our dependency class, which means that we will
not include it in the target artifact:
<dependency>
<groupId>org.jboss.spec.javax.ws.rs</groupId>
<artifactId>jboss-jaxrs-api_1.1_spec</artifactId>
<scope>provided</scope>
</dependency>
Then since we are using the RESTEasy native client API, we'll need to include its
dependency class as well:
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>2.2.1.GA</version>
<scope>test</scope>
</dependency>
Finally, the JSON.simple library from googlecode needs to be declared in your
pom.xml file as well, using a test scope, just like the RESTEasy client:
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
You can test your application using the JUnit profile which you created previously:
mvn verify
You should be able to see an output similar to the following screenshot; it is confirm-
ation that the Ticket has been sold and verified via JUnit's assertion:
Search WWH ::




Custom Search