Vincent Massol wrote:
> >
> > There are some hardcoded links to paths in the TestCases that test
> > cactus itself. The one that bit me the other day was a reference to
> > "/test/test.jsp", so if you deviate from the suggested layout of the
> > sample application, and use say "/cactus" as a directory with "test.jsp"
> > and "redirector.jsp" in it then certain tests will fail.
> >
> 
> how come ? Normally the test do not depend on anything external. The tests
> that use "/test/test.jsp" use the setURL() method from ServletTestRequest
> which is independent of the real setup. Could you point out the tests that
> failed so that we can make it independent of configuration ?
> 

TestServletTestCase4 and the SampleServlet have references to
"test/test.jsp", so if you muck about with directory structures when
using the sample, then the tests break.

Not too surprising really :)

Jari

--
Jari Worsley
Senior Programmer
Hyperlink Interactive Ltd

Reply via email to