It’s easy to create the application context by applying the spring file locations which supports more than one spring file.
You can override the protected CamelContext createCamelContext() to export the main entry context that you could use to create the producer template or consumer template. Then you can just use the CamelSpringTestSupport as you used to. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On January 9, 2015 at 3:34:38 AM, leofprince (leofpri...@gmail.com) wrote: > Dear Camel Users, > We have handful of camel context defined in spring DSL.I would like to > write Integration Test cases by loading at least 2 camel contexts and > provide some inputs via test file endpoints and get output in test file > endpoints.For Testing single spring context xml we used > CamelSpringTestSupport and worked perfect.Please share your experience in > integration testing routes with span across multiple camel contexts ? > > Thanks, > Leo. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Integration-Testing-multiple-camel-Context-in-Spring-DSL-tp5761477.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >