Re: Testing Spring DSL camel routes with CamelSpringTestSupport, osgix namespace problem

2011-04-20 Thread Willem Jiang
"http://www.springframework.org/schema/osgi-compendium"; namespace handler is a part of Spring-DM. You need to deploy the spring application into OSGi platform. If you just want to test spring DSL without OSGi. you may consider to put the into META-INF/spring/osgi-context.xml and import act

Re: Testing Spring DSL camel routes with CamelSpringTestSupport, osgix namespace problem

2011-04-20 Thread Claus Ibsen
Hi If you use OSGi you should use Pax Exam or something like that for unit testing with OSGi. Its frankly a bit more complicated and we will most likely add a camel-osgi-test component which makes testing Camel routes easier with OSGi. You can take a look at some of the camel source in tests/came

Testing Spring DSL camel routes with CamelSpringTestSupport, osgix namespace problem

2011-04-20 Thread janne postilista
I'm trying to unit/integration test my Spring DSL refined route with CamelSpringTestSupport. I have camel-context.xml which defines my routes. I try to initialize tests with that, and mock some endpoints using test-routes.xml which looks like: and my test class then looks like p