Hi Cedric
Thanks for this most useful with some searching th internet I managed to
get the test class running with testng as well. One thing to note
though, if you don not use Conversations you need to add the following
to the new CdiConfiguration, .setPropagation(NONE).
Thanks
David
On
Hi David,
you can have a look at the base CDI enabled test class we're using at
code-troopers in the following gist :
https://gist.github.com/CedricGatay/5694293
Regards,
__
Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay)
http://code-troopers.com | http://www.bloggure.info |
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,
__
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