I have a route that looks something like this (I'm abbreviating it to
make it more direct what I'm trying to test):


from(middleEndpoint).doSomeOtherMagic().to(somewhereElse);
from(jmsQueue).doSomeMagic().to(middleEndpoint);


Based on the doSomeMagic() part, it may or may not end up sending the
message to the middleEndpoint endpoint.

In my test, I want to verify that under the right conditions, messages
go where they should.

I inject the endpoints and was hoping I could use
"mock:middleEndpoint" for that, but that makes camel bark at me saying
"You cannot consume from this endpoint".

Which FM do I need to read? :)

Larry

Reply via email to