Hi,

On Sat, Aug 10, 2013 at 7:02 AM, Dishara Wijewardana
<ddwijeward...@gmail.com> wrote:
> ...The integration tests
> calls to HTTP REST endpoints. So there should be a place that I should be
> writing something like JAX-RS using sling APIs...

You don't need JAX-RS, Sling provides RESTful HTTP APIs out of the box.

> ...Apparently what I should be
> writing is something similar to PlanetsResourceProviderTest....

Yeah can be a good starting point - setup a Sling instance with your
resource provider active and create, retrieve, update and delete
resources via Sling's HTTP API.

You can also probably test your ResourceProvider without a Sling
instance, either with unit tests or pax exam integration tests. If you
can demonstrate there that it works according to the ResourceProvider
semantics, integration tests can be minimal and just verify that your
provider hooks up in the right way when activated.

-Bertrand

Reply via email to