Hi Lindanger,

I have not tried to use Cactus with JUnitX but am sure it won't work as is
for testing private servlet methods ... !
What I would suggest instead (if this not a problem for your code) would be
to move the method to test from 'private' to 'protected' and put your test
classes in the same package (maybe under a different directory tree but
under the same package). Another solution would be not to test the private
methods ! :) ... The last solution is the one you mentionned but we'll have
to play with the security manager to achieve it ... :(

Thanks
Vincent

----- Original Message -----
From: "Lindanger Trond Kjetil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 2:22 PM
Subject: Private servlet methods


> Does anybody know how to access private servlet methods when using Cactus?
> Have tried to use Cactus in combination with JUnitX, but I'm not sure if
it
> is possible
> to use the newInstance method testing a servlet.
>
> Regards
> Trond Lindanger
>

Reply via email to