Hi Cedric

Thanks for the reply I will take a look at Arquillian and see how I can use it. Any guides are helpful especially when used with wicket.

Thanks

David
On 01/06/13 16:20, Cedric Gatay wrote:
Hi,

I usually use Arquillian to deploy a CDI context in my tests which require
injection to work (often it happens for pages tests). When testing
individual components it is easy to "manually" inject references (either
via package visibility or via PowerMock's Whitebox for instance).

Regards,

__
Cedric Gatay (@Cedric_Gatay <http://twitter.com/Cedric_Gatay>)
http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr


On Sat, Jun 1, 2013 at 5:13 PM, David Beer <david.m.b...@gmail.com> wrote:

Hi All

I am having difficulty finding information on how I can create a CDI
context for use in my tests. Is there some kind of way of creating a mock
cdi environment for testing. Currently my tests fail trying to retrieve the
CDI Bean Manager as this is normally controlled by the Web Application
Container.

Do I need to create a mock Web Application class which simulates a dummy
Bean Manager? Is there any guides specific to Wicket?

Thanks

David

------------------------------**------------------------------**---------
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.org<users-unsubscr...@wicket.apache.org>
For additional commands, e-mail: users-h...@wicket.apache.org




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

Reply via email to