Thanks. I was pretty much there but I can't wrappedBundle(junitBundles())

So I guess I need to wrap one of the 3 bundles inside the junitBundles. 
Probably bundle(
"link:classpath:META-INF/links/org.ops4j.pax.tipi.junit.link"). I will try 
tonight but will be happy if there is an easier way.

But is my use-case that exotic? I thought it was pretty classic.

On Tuesday, December 27, 2016 at 5:31:00 PM UTC-5, Achim Nierbeck wrote:
>
> Hi, 
>
> you can wrap the junit bundle and add those export declarations to it. [1]
>
> Just make sure you don't have the junit configuration [2] in your project, 
> as that will collide with your own custom declaration.  
>
> Hope this helps, Achim
>
>
> [1] - 
> https://ops4j1.jira.com/wiki/display/PAXEXAM4/Configuration+Options#ConfigurationOptions-wrappedBundle
> [2] - 
> https://ops4j1.jira.com/wiki/display/PAXEXAM4/Configuration+Options#ConfigurationOptions-junitBundles
>
> 2016-12-27 22:34 GMT+01:00 Henri Tremblay <henri.t...@gmail.com 
> <javascript:>>:
>
>> Hi,
>>
>> I've been fighting for a bunch of hours now so I hope someone can help me.
>>
>> I've trying to test EasyMock OSGi configuration with Pax-Exam. Everything 
>> works fine except one thing.
>>
>> I need to export a conditional package from the JUnit bundle. With an 
>> attribute.
>>
>> Normally I would import like this in my MANIFEST.MF:
>>
>> org.easymock.internal;poweruser=true
>>
>> I have no idea how to do that.
>>
>> With Pax-Exam 4.
>>
>> Thanks for your help,
>> Henri
>>
>> -- 
>> -- 
>> ------------------
>> OPS4J - http://www.ops4j.org - op...@googlegroups.com <javascript:>
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OPS4J" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to ops4j+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & 
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master 
>
>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to