have an overrideable method on your application boolean issecurityenabled(), and only add swarm auth strategy if it returns true. that way during tests you can give tester a subclass of your app that returns false.
-igor On Thu, Sep 18, 2008 at 10:21 AM, Neil McT <[EMAIL PROTECTED]> wrote: > > Is there any way to turn-off / circumvent SWARM for testing? > > I'm using WicketTester and any time I attempt to navigate to a protected > page (i.e. implements ISecurePage) I get bounced back to my login-page. > > I'd prefer not to have to go to the lengths of 'logging in' a user, just for > tests as I'd prefer my unit tests to be as focussed as possible. > > Any help much appreciated. > > Neil. > -- > View this message in context: > http://www.nabble.com/Turning-off-SWARM-for-testing--tp19557765p19557765.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]