karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kerry <karaf-u...@avionicengineers.com>
Subject Re: Pax Exam - Install wrapped Bundle
Date Mon, 28 Aug 2017 09:31:45 GMT
Hi Oliver,

Thanks for the link. In the end I found that all I needed to do was :


(text in capitals are just static Strings holding the maven coordinates)

And the bundles are wrapped for me automatically, so I am not sure what the purpose of the
wrappedBundle method is, it doesn;t seem to work for me. I'll investigate the link further
to see if there is anything different.


On 28/08/17 10:14, Oliver Lietz wrote:
> On Saturday 26 August 2017 12:28:18 Kerry wrote:
>> Hi,
> Hi Kerry,
>> I'm trying to install TestFx standard JAR to run an integration test with
>> PaxExam and because it's not OSGi by default I've tried supplying it in the
>> Option array as a wrappedBundle:
>> wrappedBundle(mavenBundle(TESTFX_GROUP_ID, TESTFX_ARTIFACT_ID,
>> The test fails complaining that it cannot find a class within the TestFX
>> JAR, and inspecting the Karaf instance after running the test, sure enough
>> the JAR wasn't installed. There are no errors in the logs to say
>> installation failed.
>> Can anyone tell me what I am doing wrong?
> without any error from the logs I can't, but have a look at Sling Karaf and
> compare with your setup:
> https://github.com/apache/sling/blob/trunk/karaf/org.apache.sling.karaf-integration-tests/src/test/java/org/apache/sling/karaf/tests/bootstrap/SlingLaunchpadNosqlCouchbaseIT.java
> Regards,
> O.
>> Kerry

View raw message