When you use from(something) then you filter the messages to be only
from that route. So you may have more routes also process messages
which then impacts your assertions.

On Fri, Dec 16, 2016 at 9:47 AM, sa_james <sa_remin...@hotmail.com> wrote:
> I Mean the Assertion error, like so:
>
> java.lang.AssertionError: mock://test Received message count. Expected: <1>
> but was: <2>
>
> I also noticed that when I used the
> notifyBuilder.*from("something").*whenDoneSatisfied(mock) then it always
> works.
> Without the *from("something") *part, it does not always work. I believe
> there are some Little things there that I am still missing.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/NotifyBuilder-whenDoneSatisfied-mock-tp5791486p5791540.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to