http://sling.apache.org/site/sling-testing-tools.html
This is what I needed.


One thing is that  I want to put my Test classes under src/test/,  not
src/main/.
But, I don't know how to configure maven-bundle-plugin so that some of
classes under src/test/ to be copied to the bundle .jar.

Is there a way?  Or, should I put Test classes under src/main/,  too?



On Fri, Jan 27, 2012 at 1:33 PM, sam ” <[email protected]> wrote:

> Hey,
>
> I have a test script that will make a series of HTTP requests to Sling.
> I need to write servlets that will handle the requests.
> I can either use jsp (/apps/tests/test1/json.jsp, for example).
> Or, I can write a @Service that implements Servlet interface.
>
> Good thing about writing .jsp to the repository is that I can configure
> ACL to block access to /apps/tests.
> If I write a @Service that implements Servlet interface (that handles
> requests to /bin/tests, for example), anonymous users can make requests.
> Maybe there is a way to configure ACL for resources that do not exist in
> the repository (such as /bin/tests) ??
>
> How do you write integration tests?
>
> Thanks.
> Sam.
>
>
>

Reply via email to