Package uk.ac.sheffield.vtts.client.rs

This package contains service components and witness-types for testing with generated JUnit test drivers that test JAX-RS REST services.

See: Description

Package uk.ac.sheffield.vtts.client.rs Description

This package contains service components and witness-types for testing with generated JUnit test drivers that test JAX-RS REST services. It is part of the Broker@Cloud Verification and Testing Tool Suite, v1.0, © Anthony J H Simons and Raluca Lefticaru, 2015. Main web site: http://staffwww.dcs.shef.ac.uk/people/A.Simons/broker/.

Sub-package uk.ac.sheffield.vtts.client.rs

This package is a repository where you may place any components needed by your JAX-RS web service implementations. Unlike the other service client examples, there is no Java service client for REST services, since calls are made directly against the REST API of those services. However, we provide this folder as a repository where you may place further types used by your JAX-RS service implementations.

In general, you will use the JAX-RS development framework to build your JAX-RS web service. We assume that you will have used the Apache Jersey reference implementation for your REST service, and that you will have used Google's Gson to parse JSON responses. When you generate JUnit test-drivers for a JAX-RS REST web service, these will have dependencies on certain Jersey and Gson files. You will need to configure your build path to include these dependencies from the library accompanying this source code bundle (or by installing them from primary sources yourself).

Apart from any service components, further kinds of domain object (such as the class DVD used in the ShoppingCart example) are provided here, so that they are available to the generated test-drivers.