Hi Oli,

CamelCdiRunner bootstraps a Weld SE container so that you can easily test your 
Camel CDI code with a bare minimal CDI container. If you want to test your 
Camel CDI code with WildFly Swarm, you may need to rely on Arquillian or what 
WildFly Swarm provides as testing framework. You may find some examples in the 
WildFly Swarm project, like 
https://github.com/wildfly-swarm/wildfly-swarm-examples/tree/master/camel/camel-cdi.

Hope that helps.

Antonin 

> On 03 Nov 2016, at 15:30, Oli <olilog...@gmail.com> wrote:
> 
> Hello camel experts,
> 
> I'm using camel inside of wildfly swarm application and having trouble to
> create a working test with CamelCdiRunner. I've followed the example from
> camel documentation but the test I've created fails with the error:
> 
> java.lang.NullPointerException
>       at
> org.wildfly.swarm.cdi.StageConfigBean.getBeanClass(StageConfigBean.java:48)
> 
> Now, I realize that it is might be wildfly swarm issue (or my fault :D), but
> I hope that there is the way to test the route without involving wildfly
> swarm at all. That's why I've used CamelCdiRunner. 
> 
> Here is demo project with the test.
> 
> https://doc-08-1o-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/g6huv41c8phejsrv7f9djrkie28con92/1478181600000/04138686178860852595/*/0B48lpc4O6VLJam5TLTZoc3VCZG8?e=download
> 
> Thank you
> 
> - oli
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Testing-CDI-Route-tp5789709.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to