I have a route such as: <route autoStartup="true" xmlns="http://camel.apache.org/schema/spring"> <from uri="activemq:somequeue"/> ... <to uri="http:hostname/some/path"/> </route>
If I set up mocking, using a wrapper xml file containing: <bean id="mockAllEndpoints" class="org.apache.camel.impl.InterceptSendToMockEndpointStrategy"/> I can now intercept the endpoints to see what was sent but how to I prevent the test from connecting to activemq and the remote http server so I can run the test without any external interaction? I managed to use <bean id="activemq" class="org.apache.camel.component.direct.DirectComponent" /> to prevent activemq connecting, but the same trick did not work with mina or http since the parameters passed are not appropriate. Thanks, Tom