camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Konsek <>
Subject Re: How to mock endpoints taking lots of different query parameters values?
Date Thu, 20 Sep 2012 16:50:08 GMT
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

View raw message