camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olaf <>
Subject How to mock a processor
Date Thu, 17 Oct 2013 18:15:41 GMT

I'm trying to test a simple route which downloads emails and then split
attachments, replace body and sends each attachment to an another email.
Now, ReplaceBodyProcessor does some network calls and I'd like to mock it
out and simulate its work, to avoid external calls. What is the right way to
do it?

Thanks in advance!

        public void configure() {
                .split(new SplitAttachmentsExpression())
                .process(new MailProcessor())
                .process(new ReplaceBodyProcessor())

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message