I want to know if anyone has tried to test beans/services exposed through blueprint.xml working in pax-exam using native container.
I have a project with two bundles - a) config - interface classes b) config-impl - contains implementation and exposes bean as service defined in blueprint.xml.
I was hoping that @Inject in the test class similar to approach mentioned @ https://ops4j1.jira.com/wiki/display/PAXEXAM3/Getting+Started+with+OSGi+Tests should automatically set the instance value in @Inject'ed variable but it doesn't seem to be working.
The options sent to pax-exam are pasted below. By any chance, would there be more bundles to load so that pax-exam starts recognizing blueprint.xml and boot up the service?
return options(
systemProperty("osgi.console").value("6666"),
junitBundles(),
provision(
mavenBundle("org.osgilab.testing", "commons", "1.0.0"),
mavenBundle("org.apache.commons", "com.springsource.org.apache.commons.codec", "1.3.0"),
mavenBundle("org.codehaus.jackson", "jackson-core-asl", "1.9.12"),
mavenBundle("org.codehaus.jackson", "jackson-mapper-asl", "1.9.12"),
mavenBundle("com.umum.container", "container-config", "1.0.0"),
mavenBundle("com.umum.container", "container-config-impl", "1.0.0").start()),
systemProperty("pax.exam.service.timeout").value("160000"), systemTimeout(160000));