Hi guys,

>   from("direct:start").process(new
> ClassThatGeneratesDynamicUriHeader()).recipientList(header("DynamicURI"));

In in opinion using Mock component to validate that class generating
the endpoint address for recipient list is not a way to go.

What you try to do now is to test whether Recipient List works as it
ought to. In other words you are testing Camel core (which already got
pretty good test coverage) :) .

Just create good unit test for ClassThatGeneratesDynamicUriHeader. If
ClassThatGeneratesDynamicUriHeader is well tested, you can be sure
that recipient list will work as expected.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com

Reply via email to