karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Pieber <anpie...@gmail.com>
Subject Re: Help testing in Karaf 2.3.1
Date Tue, 16 Apr 2013 05:12:45 GMT
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