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