Turning off SWARM for testing?

2008-09-18 Thread Neil McT
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

Re: Turning off SWARM for testing?

2008-09-18 Thread Igor Vaynberg
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

Re: Turning off SWARM for testing?

2008-09-18 Thread Neil McT
://www.nabble.com/Turning-off-SWARM-for-testing--tp19557765p19558153.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]

Re: Turning off SWARM for testing?

2008-09-18 Thread Igor Vaynberg
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 -- View this message in context: http://www.nabble.com/Turning-off-SWARM-for-testing

RE: Turning off SWARM for testing?

2008-09-18 Thread Hoover, William
Try HiveMind.unregisterHive(hiveKey); -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 1:56 PM To: users@wicket.apache.org Subject: Re: Turning off SWARM for testing? sorry, i dont know anything about swarm itself. maybe during test

Re: Turning off SWARM for testing?

2008-09-18 Thread James Carman
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 -- View this message in context: http://www.nabble.com/Turning-off-SWARM

RE: Turning off SWARM for testing?

2008-09-18 Thread Hoover, William
PM To: users@wicket.apache.org Subject: Re: Turning off SWARM for testing? HiveMind? On Thu, Sep 18, 2008 at 2:03 PM, Hoover, William [EMAIL PROTECTED] wrote: Try HiveMind.unregisterHive(hiveKey); -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday

Re: Turning off SWARM for testing?

2008-09-18 Thread James Carman
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: Thursday, September 18, 2008 2:07 PM To: users@wicket.apache.org Subject: Re: Turning off SWARM for testing? HiveMind? On Thu, Sep 18, 2008 at 2:03 PM, Hoover, William [EMAIL PROTECTED] wrote: Try

RE: Turning off SWARM for testing?

2008-09-18 Thread Hoover, William
To: users@wicket.apache.org Subject: Re: Turning off SWARM for testing? Way to poach a name! :) On Thu, Sep 18, 2008 at 2:17 PM, Hoover, William [EMAIL PROTECTED] wrote: Yes, the same org.apache.wicket.security.hive.HiveMind used to HiveMind.registerHive(getHiveKey(), factory) the factory

Re: Turning off SWARM for testing?

2008-09-18 Thread James Carman
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Carman Sent: Thursday, September 18, 2008 2:24 PM To: users@wicket.apache.org Subject: Re: Turning off SWARM for testing? Way to poach a name! :) On Thu, Sep 18, 2008 at 2:17 PM, Hoover

Re: Turning off SWARM for testing?

2008-09-18 Thread Igor Vaynberg
Subject: Re: Turning off SWARM for testing? Way to poach a name! :) On Thu, Sep 18, 2008 at 2:17 PM, Hoover, William [EMAIL PROTECTED] wrote: Yes, the same org.apache.wicket.security.hive.HiveMind used to HiveMind.registerHive(getHiveKey(), factory) the factory in SwarmWebApplication#setUpHive

RE: Turning off SWARM for testing?

2008-09-18 Thread Neil McT
/Turning-off-SWARM-for-testing--tp19557765p19558799.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]

Re: Turning off SWARM for testing?

2008-09-18 Thread Martijn Dashorst
:) Hoover, William wrote: Try HiveMind.unregisterHive(hiveKey); -- View this message in context: http://www.nabble.com/Turning-off-SWARM-for-testing--tp19557765p19558799.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Turning off SWARM for testing?

2008-09-18 Thread Neil McT
. Not the prettiest solution but it _seems_ to work. Martijn Dashorst wrote: Why not create an authenticated session instead? Martijn -- View this message in context: http://www.nabble.com/Turning-off-SWARM-for-testing--tp19557765p19560295.html Sent from the Wicket - User mailing