On Wed, May 26, 2010 at 2:43 AM, Hadrian Zbarcea <[email protected]> wrote: > What about using properties for the endpoint uris? > Hadrian >
Yes using spring property placeholders or the new properties component in camel 2.3 makes this possible to change the endpoints. The Camel in Action book, chapter 6, also discusses other techniques with Camel how to test such scenarios using other techniques. > On May 25, 2010, at 3:19 PM, Steve Holmes wrote: > >> >> Hi All! >> I was wondering if there was any way to mock out the endpoints for existing >> routes (with existing endpoints). Or if there was some way to inject the >> endpoint at run-time so that during test it could be a mock but in >> production it could be a something else. I'm using Spring so if it could be >> used to accomplish this task then great. >> >> Examples would be greatly appreciated. >> Thanks in advance! >> -- >> View this message in context: >> http://old.nabble.com/Testing-existing-routes-using-Camel-Test-tp28672348p28672348.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
