You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gnanaguru S <gn...@gmail.com> on 2014/12/02 06:43:09 UTC

Testing a independent route context or independent route

Just wondering if there is a way to unit test a route by loading it in a xml
file. 

Basically I have designed lots of routes and routes contexts in my blueprint
project. I am using Camel 2.10 and I am bit lazy( no time actually ) to fix
my blueprint unit test dependency issues. 

I was recently excited by seeing every route in its own xml, through HAWTIO.
As also I am a huge fan of camel unit testing ( I enjoy it only in spring
based camel projects ;) ) , I am curious to know if the following is
possible ?

1. Create a route in a xml file ( atleast a routecontext ) say
routeAlone.xml
2. Create a unit test with a routeBuilder loading routeAlone.xml
3. Assert the responses. 

May be am expecting too much but wanna check if this is possible atleast in
future ? :-D

Cheers
Guru
bushorn.com



--
View this message in context: http://camel.465427.n5.nabble.com/Testing-a-independent-route-context-or-independent-route-tp5759897.html
Sent from the Camel - Users mailing list archive at Nabble.com.