Thanks guys for the reply.  This has really helped me tidy my unit tests up. 
I hadn't realised that I could load xml from the test resources directory
from getBlueprintDescriptor().  

Interestingly loadConfigAdminConfigurationFile() needs the full path from
the module route.  i.e. 

    return new String[] {
            "src/test/resources/blueprint/my.config.stuff.cfg",
            "my.config.stuff"     // Persistent ID
    };

With some naming standards I could refactor the route name as a parameter
and generate all of the inputs to these calls.  Or perhaps not.

Thanks again.

O.



--
View this message in context: 
http://camel.465427.n5.nabble.com/It-IS-possible-to-import-routeContext-in-OSGi-Blueprint-tp5783323p5783349.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to