You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "kraythe ." <kr...@gmail.com> on 2014/04/01 03:49:47 UTC

Re: whenAnyExchangeReceived is never called

Your code is odd. You are replacing "mock:http" with the same thing? Why? I
think you should post your whole test case. I don't think you are getting
the right mock endpoint so the mock endpoint you are accessing is not
actually in the route. Try  assertNotNull("mock:http"); before you get the
mock endpoint and I bet it fails.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
<http://www.linkedin.com/pub/robert-simmons/40/852/a39>*


On Mon, Mar 31, 2014 at 4:12 AM, Olaf <om...@gmail.com> wrote:

>  template.sendBody("direct:in", body);
>
> was called before mock assertions definitions.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/whenAnyExchangeReceived-is-never-called-tp5749491p5749558.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: whenAnyExchangeReceived is never called

Posted by Olaf <om...@gmail.com>.
It was only for demonstration. As I said above, template was sent to early.
That was the problem



--
View this message in context: http://camel.465427.n5.nabble.com/whenAnyExchangeReceived-is-never-called-tp5749491p5749606.html
Sent from the Camel - Users mailing list archive at Nabble.com.