Maybe you let pax exam do the bundle install using the deploy folder of
karaf.
Then it is possible that your test code runs before the bundle is installed.
Try this:
|.useDeployFolder(||false||)|
Then a feature file will be used and pax exam will make sure the bundle
is started before your test runs.
In most pax exam tests you simply inject a service into the test.
Besides providing the service for your test class this makes sure the bundle
containing the service is up and running.
Christian
Am 28.03.2014 23:23, schrieb ken:
Also, issue arises :( I am still playing around with pax-exam and trying to
install a bundle and see if it exist. This is so I get the hang of things
before writing real integration tests.
and my check is as simple as
it doesn't seem to be able to find the bundle.
any suggestions as to what i am doing wrong?
Thanks,
Ken
--
View this message in context:
http://karaf.922171.n3.nabble.com/integration-testing-with-karaf-tp4032439p4032459.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com