Sorry - fairly new to Wicket - don't quite follow. Do you mean subclass
AuthenticatedWebSession in the test environment to always return true on
authenticate() ? How would this play with SWARM?

I have just found an, albeit more convoluted, solution....

My TestApplication class overrides setupStrategyFactory to return a dummy
strategy factory which is configured with a stub implementation of
ISecureComponent. Digging about in the SWARM code it seems that only
subclasses of this stub will be authenticated - and as there are no
subclasses, authentication has been essentially circumvented.

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 list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to