Suppose I have these two routes
<camelContext>
<route>
<from ref="incoming" />
<!-- some processors -->
<inOnly ref="outgoing" />
</route>
<route>
<from ref="outgoing" />
<!-- some processors -->
<inOnly ref="finish" />
</route>
</camelContext>
In the real context they are JMS queues which is fine. But I want to test that the routing is correct so I changed JMS components in the testContext.xml to:
incoming -> direct
outgoing -> mock
finish -> mock
I want those inOnly queues to be mocks so I can test them for the number of messages. The problem is that a mock queue cannot work as an input queue in the second route. How can I fix this?