camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwuelker <>
Subject NotifyBuilder and MockEndpoint question
Date Tue, 12 Apr 2011 13:46:01 GMT
I have a unit-test for a route that uses a MockEndpoint and waits 5 sec with
Thread.sleep() for 1 message to be finished. This works, but  now i want to
use the NotifyBuilder  instead. But instead of 1 Message the MockEndpoint
receives 3 (i think its the original message and the target message twice).
if i use NotifyBuilder  but replace the MockEndpoint with the file-component
(fileExist=Fail) everything works fine again, no error but 1 file is
written. Did anyone already experienced this and can tell me what to do?

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

View raw message