Hi,
*Our Usecase:* On a certain trigger i.e. one file being touched in a
particular location. On this we want to fetch a file from sftp server and
then put it on a local file system.
We are achieving this in the following way
----------------------------------------------------------------
from("file://triggerFilePath")
.pollEnrich("sftp://XXXXXX", timeout = XXXXXX)
.to("file://finalEndFilePath")
--------------------------------------------------------------------
This seems to be working fine. But i am having trouble trying to test this
route using the CamelTestSupport.
I am able to mock endpoint for fileTriggerPath and set hat a file with this
content should be created. But I am not able to mock the sftp end point in a
similar way. Would anyone know if there is a simplistic way of doing it
using CamelTestSupport or otherwise.
I am using camel version 2.11.0 and I am using the scala dsl.
Thanks
Dhaval
--
View this message in context:
http://camel.465427.n5.nabble.com/mocking-sftp-using-CamelTestSupport-in-pollEnrich-tp5750925.html
Sent from the Camel - Users mailing list archive at Nabble.com.