11 Feb
2002
11 Feb
'02
7:41 a.m.
On Fri, Feb 08, 2002 at 11:10:48PM +0100, Dieter Maurer wrote:
Marius Gedminas writes:
We are using ZUnit for our automated unit test suite.... However we are now planning to switch to the new API (SecurityGetUser etc.), and it is unclear how we can substitute a different user object in our tests. Look at "AccessControl.SecurityManagement.newSecurityManager".
Thanks. I actually found this method a day after posting my question here, but I still wasn't sure if this was a "legal" way or just a hack messing with the internals that should not be touched. Marius Gedminas -- When in danger, or in doubt, run in circles, scream and shout. -- Robert A. Heinlein