Re: Testing of routes using Camel 1.6

2013-01-07 Thread dhruv.sachdeva
Thanks for Updation.Yes Camel 2.x and above version support this route component testing,but i need to test using Camel 1.6 ,so please if you can suggest some examples or is it infeasible to test using Camel 1.6. -- View this message in context: http://camel.465427.n5.nabble.com/Testing-of-rou

Re: Testing of routes using Camel 1.6

2013-01-07 Thread Willem jiang
Hi, If you are using camel 2.x, you can leverage intercept[1] or advicewith[2] to check the states of endpoints. It looks like you are using more then three years old camel. I'm not sure if there is a better solution for your request. [1]http://camel.apache.org/intercept.html [2]http://camel.ap

Testing of routes using Camel 1.6

2013-01-06 Thread dhruv.sachdeva
Hi I need to write unit test cases for some camel routes using (Version 1.6) Can anyone please suggest if it is possible to mock components(processor and idempotentConsumer) inside the route? If yes, please suggest the approach. Below is the route snippet from("direct:someuri").proces