Hi You can use advice with, or some other ways. See bottom of this page for some links to read http://camel.apache.org/testing
On Tue, May 6, 2014 at 2:28 PM, dhavalsdoshi <dhaval.do...@gmail.com> wrote: > 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. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/