karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Help testing in Karaf 2.3.1
Date Tue, 16 Apr 2013 06:46:58 GMT
OSGI-INF instead of OSGI_INF... ;-)

Sent from a mobile device
Am 16.04.2013 07:13 schrieb "Andreas Pieber" <anpieber@gmail.com>:

> 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 <glsilverman@pssd.com> 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.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message