If you talk about wickettester test then I setup it the same way I do
it for running in web container - thru
IComponentInstantiationListener.
I just pass different Giuce module which setups mock services.

You can see it in www.jweekend.com/dev/LegUp guice quickstart.

On Wed, Jun 22, 2011 at 3:28 PM, kamiseq <[email protected]> wrote:
> hej,
> I ve found something something like this
> http://blog.yanivkessler.com/2010/06/writing-unit-tests-for-guicey-wicket.htmlbut
> I think there should be some easier way to setup guice DI. I tried to
> use AtUnit but it doesnt work with webpages( I get
> *org.apache.wicket.WicketRuntimeException:
> There is no application attached to current thread main *or object are not
> simply injected)
>
> can you explain how to configure it?*
> *
> pozdrawiam
> Paweł Kamiński
>
> [email protected]
> [email protected]
> ______________________
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to