Hi Harald, 

Thanks for this. Sorry for not being clear. I meant to ask how test
against 
Different OSGI frameworks, which you have guessed and answered.

I ll give version 3 a go.

Thanks and best regards
Andreas 

Am 12/19/12 9:47 AM schrieb "Harald Wellmann" unter
<hwellmann...@gmail.com>:

>Hi Andreas,
>
>scanComposite was an option supported by the Pax Runner Container only.
>
>The Pax Runner Container is deprecated since Pax Exam 2.5.0 and gone in
>Exam 3.
>
>To factor out Exam options and reuse them in different configurations,
>you can simply use a composite option.
>
>Example: See regressionDefaults() in
>https://github.com/ops4j/org.ops4j.pax.exam2/blob/master/itest/src/it/regr
>ession-multi/src/test/java/org/ops4j/pax/exam/regression/multi/RegressionC
>onfiguration.java
>
>By the way, if you do need classloader isolation, you can use the Forked
>Container in Exam 3 (which runs in a spawned VM, just like the Pax
>Runner Container), but in general, the Native Container is easier to
>use, especially for debugging.
>
>I'm not sure what you mean by "different runtimes" - different OSGi
>frameworks?
>
>The OSGi framework is detemined by your classpath via META-INF/services
>lookup. If you need to test on multiple frameworks on a regular basis,
>the best way is using Maven profiles.
>
>Best regards,
>Harald
>
>Am 19.12.2012 09:58, schrieb Andreas Gies:
>> Hello,
>>
>> I have just used pax exam to write a simple test for an OSGi bundle. I
>> have used a pax runner configuration to start up my container as i
>> intend to use that for starting app my final application as well.
>>
>> I have noticed, that with 3.0+ the following configuration would not
>> work anymore:
>>
>>    @Configuration
>>    def config = {
>>      import org.ops4j.pax.exam.CoreOptions._
>>
>>      options(
>>        equinox(),
>>        junitBundles(),
>>        scanComposite("classpath:scala.composite")
>>      )
>>    }
>>
>>
>> Is there something like scanning a composite in 3.0+ and providing
>> different runtimes that i failed to spot ?
>
>
>_______________________________________________
>general mailing list
>general@lists.ops4j.org
>http://lists.ops4j.org/mailman/listinfo/general



_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to