Hi,
The Mock endpoint is not like a consumer/server that receives a message and
sends a response with another message. The mock endpoint is a dead-end
endpoint only receive messages and assert based on the fact that it met
certain criteria.
This is why it cannot be a consumer endpoint in camel and used in
from("mock:XXX") since it is unable to push an exchange further down the
route to other route segments (i.e. dosomeOtherMagic()).
You might want to use the Direct or SEDA/VM components to achieve your
objective instead of Mock...
Hope this explains the issue and its resolution.
Cheers,
Ashwin...
-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com
Blog: http://opensourceknowledge.blogspot.com
---------------------------------------------------------
--
View this message in context:
http://camel.465427.n5.nabble.com/Testing-a-route-that-uses-an-intermediate-endpoint-tp5523537p5525385.html
Sent from the Camel - Users mailing list archive at Nabble.com.