camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tadayoshi Sato <>
Subject Re: How to test Camel-http outbound calls
Date Mon, 26 Sep 2016 02:02:53 GMT

Whether or not it's a standard practice, I don't think there is any other
good approach than either mocking the component and checking the headers,
or using an embedded Jetty server inside the test case. Also, such kind of
integration test should be more reliable if you want to repeatedly check
missing runtime dependencies.

Best regards,

On Sat, Sep 24, 2016 at 4:24 PM, Goyal, Arpit <> wrote:

> We have to validate whether the authentication and encryption aspect of
> HTTP outbound calls are working properly. On searching most of the testing
> pointers are to mock the component and verify the values being sent to HTTP
> endpoint. But based on the link [1] there is a comment at the end which
> talks about using Jetty consumer to verify whether http calls are
> successful making it more of an integration test rather than unit test.
> Is such kind of integration test standard practice with camel HTTP (or
> SOAP) outbound calls?
> Also, we regularly update our camel version to pick the latest version.
> Sometimes jars could be missed and such test helps in through unresolved
> runtime-dependencies. So thinking of having such integration tests.
> Regards,
> Arpit.
> [1] -
> junit-test-http-component-with-bean-component

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