OSGI-INF instead of OSGI_INF... ;-) Sent from a mobile device Am 16.04.2013 07:13 schrieb "Andreas Pieber" <[email protected]>:
> Hey, > > a) is it possible that you've missed the relevant methods in your question? > b) I think the user list might have been the better place to ask, but > anyhow: > c) IIRC your entire test bundles is deployed into the container, so e.g. a > blueprint file from the correct location ( > src/test/resources/OSGI_INF/blueprint should startup. But be aware of > racing conditions here since there's no mechanism waiting for your test > bundle to become a full and real bundle; ASAP RCP is working your tests are > run! > > Kind regards, > Andreas > > > On Tue, Apr 16, 2013 at 2:40 AM, glsilverman <[email protected]> wrote: > > > I'm testing with KarafDistributionConfiguration and TestProbeBuilder, but > > it > > seems the KarafTestContainer can only recognize existing bundles. For > > example, if I want to test a blueprint.xml file and the beans it > generates > > from classes in src/main/java, how do I set up the configuration? In > normal > > JUnit tests, I can put the xml file under src/test/resources and it will > be > > picked up automatically, but not with the KarafTestContainer. > > > > I'm using a custom KarafTestSupport class. Here are the relevant methods: > > > > > > > > > > > > -- > > View this message in context: > > > http://karaf.922171.n3.nabble.com/Help-testing-in-Karaf-2-3-1-tp4028453.html > > Sent from the Karaf - Dev mailing list archive at Nabble.com. > > >
