camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Ullinger <>
Subject AW: Replace "from" endpoint with mock in test?
Date Thu, 10 Jun 2010 08:55:18 GMT

Well, you could use property placeholders with different property files for test and runtime.
You could then define the endpoints externally in two files and use the ftp component for
runtime and the file component for tests.


-----Urspr√ľngliche Nachricht-----
Von: ankelee [] 
Gesendet: Donnerstag, 10. Juni 2010 10:50
Betreff: Replace "from" endpoint with mock in test?


I'm setting up a test for a route that starts at an FTP-endpoint. I would
like to be able to test without setting up an FTP-server.

In Camel in Action there is shown a trick where you can replace the
jms-component with a seda-component and then consume from that endpoint. Is
there any tricks you could do similarly with the FTP-endpoint. I thought
about replacing it with a file endpoint but there's obviously unknown
parameters on there so that wouldn't work.

Is it possible to completely substitute a "from"-endpoint with another in
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message