wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Newgro <per.new...@gmx.ch>
Subject Re: WicketTester & Spring
Date Sun, 04 Mar 2012 07:32:27 GMT
And the app should know the context in which way? No no you have to set 
the app to wicket tester instance.
<code>
     tester = new WicketTester(new MyApp());
</code>

Cheers
Per

Am 04.03.2012 06:17, schrieb Douglas Ferguson:
> I'm trying to use wicket tester to test an app that is running with spring.
>
> I'm getting this error:
>
> 	 java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener
registered?
>
> I thought perhaps I would be able to use SpringJunit4ClassRunning, but that didn't work.
Any tips?
>
> 	@RunWith(SpringJUnit4ClassRunner.class)
> 	@ContextConfiguration(locations = { "classpath:spring/mockApplicationContext.xml"})


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message