camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: NotifyBuilder whenDoneSatisfied mock
Date Fri, 16 Dec 2016 08:51:58 GMT
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_reminder@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

Mime
View raw message