This content has been marked as final.
Show 2 replies
-
1. Re: Testing InOut route with a <to> in the middle...
njiang Jul 4, 2011 8:35 PM (in response to catlinit)As you doesn't setup the route of mock://vm:restQuery, you may consider to add the route like this into your camel context before running the test.
from("vm:restQuery").to("mock://vm:restQuery");
Or you can use the interceptSendToEndpoint() DSL to simulate the response from the processor. You can find more example in the Camel in Action Chapter6.
Willem
-
2. Re: Testing InOut route with a <to> in the middle...
catlinit Jul 6, 2011 3:50 AM (in response to njiang)Thanks. The solution was to remove any reference and use of mocks and use the interceptSendToEndpoint on the vm:restQuery endpoint to return the value.