camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinny <>
Subject Re: Testing Routebuilder classes without a Mock endpoint
Date Wed, 28 Jan 2015 20:40:48 GMT
Ok, I was able to "append" a "mock:result" to a route using
weaveById("silver").after(), still seems a little clunky though:

On Wed Jan 28 2015 at 3:08:05 PM Vinny <> wrote:

> Hello All,
> Sorry if this is a newb question but I was wondering if there is a way to
> test my routes  in way that does not involve added  .to("mock:xxx") on the
> end of the routes. I may be pure vanity but I don't like the idea of having
> "production" routes with mocks in them. I saw the documentation on
> adviseWith and that seems like it might have been able to help but the
> route I'm trying to test is doesn't seem to bring me the data I'm looking
> for on the return.  Unit test to illustrate:
> Is there a way to make this unit test pass without a Mock?
> Thanks in advance,
> Vincent

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message