camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <>
Subject Testing a route that uses an intermediate endpoint
Date Tue, 28 Feb 2012 23:06:33 GMT
I have a route that looks something like this (I'm abbreviating it to
make it more direct what I'm trying to test):


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? :)


View raw message