Re: MockEndPoint expected methods clashing

2014-07-04 Thread Claus Ibsen
> You could write the test for yourself: > expects(new Runnable(){ > ... > }); > > Or use allMessages() ... > > > Jan > > >> -Ursprüngliche Nachricht- >> Von: Minh Tran [mailto:darth.minhs...@gmail.com] >> Gesendet: Freitag, 4. Juli

AW: MockEndPoint expected methods clashing

2014-07-03 Thread jhm
4 04:00 > An: users@camel.apache.org > Betreff: MockEndPoint expected methods clashing > > Hi > > I’m calling setExpectedMessageCount and expectedBodiesReceived like > this and seeing odd behaviour > > endpoint.setExpectedMessageCount(2); > endpoint.setExpected

MockEndPoint expected methods clashing

2014-07-03 Thread Minh Tran
Hi I’m calling setExpectedMessageCount and expectedBodiesReceived like this and seeing odd behaviour endpoint.setExpectedMessageCount(2); endpoint.setExpectedBodies(“hello”); I would expect that it will attempt to find 2 messages with both bodies containing “hello”. Instead it appears as thoug