Hi, regarding testing of Camel inside Pax-Exam you'll find a demo project [1] and a blog [2]. Concerning the HttpClient inside Pax-Exam, take a look at the Pax-Web Integration tests[3].
Hope this helps, Achim [1] - https://github.com/ANierbeck/Camel-Pax-Exam-Demo [2] - http://notizblog.nierbeck.de/2013/08/testing-camel-jpa-routes-with-pax-exam-and-karaf/ [3] - https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/ITestBase.java#L133 2014-05-21 15:13 GMT+02:00 ozzyoli <[email protected]>: > I'd like to test my camel routes (which have Http endpoints) which are > deployed on my custom karaf distro. > > The problem with using Pax Exam is that the tests are executed as bundles > inside the container. > > I'd like my test to treat karaf as a black box. Use a simple HttpClient to > make requests to Karaf and process the results. > > If I run the test inside Pax Exam my tests fail because my dependencies > (e.g. Apache HttpClient) aren't found in any of the bundles deployed in > karaf. > > I think i'm missing something obvious here, any help would be greatly > appreciated. Thank you > > Oli > > > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/How-to-test-my-Camel-Routes-on-Karaf-using-Pax-Exam-tp4033218.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Software Architect / Project Manager / Scrum Master
