On Thu, 14 Feb 2008, Sven Schliesing wrote: > java.lang.IllegalStateException: No WebApplicationContext found: no > ContextLoaderListener registered?
Yep, you should provide it an ApplicationContext more suitable for testing. There is the handy MockContext in wicket-spring that you can use. We have typically made a subclass (anonymous or named) of our real application-specific Application class and in there instantiated the Spring component injector with MockContext (you can make an overridable protected method in your Application class for this). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oy <URL: http://www.ri.fi/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
