camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Testing Jetty Endpoint
Date Thu, 05 Nov 2009 14:53:36 GMT
On Thu, Nov 5, 2009 at 3:49 PM, Markus Wolf <markus.wolf@nmmn.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there,
>
> I want to write a unit test for a producer receiving the exchange from a
> jetty endpoint. Is there an example for doing this in the camel sources?
> Or is this the wrong way to write a test case?
>
> Currently I tried to setup the jetty->processor route in the test case
> and then send a request to the configured endpoint. But this does not
> work as expected and I always get a http 500 error back. When I call the
> endpoint url from a browser it does work as expected.
>

Yeah there is a gazillion unit tests in camel-jetty.
http://camel.apache.org/source.html

Browse into the components/camel-jetty and into the src/test/java folder


> Thanks for any ideas
> Markus Wolf
> - --
> NMMN - New Media Markets & Networks GmbH
> Langbehnstrasse 6, 22761 Hamburg
> Geschäftsführung: Kfm. Michael Schütt
> Finanzamt HH-Altona - UStID DE 812 699 852 - HRB 71102 Hamburg
> HypoVereinsbank   -   BLZ 200 300 00   -   Konto-Nr. 156 29 82
>
> http://www.nmmn.com
> Tel.: +49 40 284 118-0  -  Fax: +49 40 284118-999
> Softwareentwicklung LLynch: -720
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkry5hQACgkQDBHISU1oEKHsowCgmjgb6qr10IjH15FbjgVXKL1E
> fugAoJfHE72SZWyOZjttVr3j5bpKcwAA
> =t02M
> -----END PGP SIGNATURE-----
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message