Hi,

You can use Pax Exam for your integration tests, wait for bootfinished
event, then using your camel route's incoming technology (jms client, http
call, etc..) to call them.
Here's a simple example of a rest service call (would be the same with a
camel cxfrs power from() route):
https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net.osgiliath.samples/net.osgiliath.hello/net.osgiliath.hello.business/net.osgiliath.hello.business.impl.cdi/src/it/java/net/osgiliath/hello/business/impl/cdi/services/impl/itests/ITHelloServiceJaxRS.java

Regards,

2015-03-17 9:42 GMT+01:00 yogu13 <yog...@gmail.com>:

> Hi,
>
> I am writing a integration testcase (in karaf) which needs to make a call
> to
> camel route in different bundle. I understand interfacing with camel routes
> become easy by having the test class extend CamelTestSupport. However my
> Test classes are not at the liberty to extend CamelTestSupport as they
> already inheriting a different class.
>
> What are my options in this scenario and how can i achieve it ?
>
> Regards,
> -Yogesh
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Any-alternative-for-CamelTestSupport-tp5764259.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Charlie Mordant

Full OSGI/EE stack made with Karaf:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent

Reply via email to