I've read through the docs and I can't seem to figure out how to use the
Cactus framework to test forwards (e.g. Servlet chaining).
Example:
I have a servlet that simply looks at the pathInfo of the incoming
request, and forwards the request to another Servlet based on the path
info. I want to unit test the main Servlet, but I'm not sure how to
check whether or not it is forwarding to the correct Servlet.
Is there a way to intercept the forward call? How would one test this?
Any help or pointers to existing help would be great.
- Charlie