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
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
://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]
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
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
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
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
: [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
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
-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
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
/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]
:)
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
.
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
14 matches
Mail list logo