You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Ryan Moquin <fr...@gmail.com> on 2010/03/10 18:05:39 UTC
SMX4 and unit/integration testing
I was wondering if there was any way to convert SMX3 unit tests to test
against SMX4? I know SMX4 has a JBI container and that SM3 SAs should
deploy in it, but I've hit some minor snags before. Also, I was considering
creating some OSGI component, but would like to be able to test those like I
was testing my SMX3 components.
Thanks!!
Ryan
Re: SMX4 and unit/integration testing
Posted by Eoghan Glynn <eo...@gmail.com>.
Hi JB,
When running your integration tests on Java6, you may run into a problem
with pax-exam not setting the org.osgi.framework.system.packages property
appropriately.
See https://issues.apache.org/jira/browse/FELIX-2049 &
https://issues.apache.org/jira/browse/FELIX-2063 for details of the
work-around used in karaf for this issue.
Cheers,
Eoghan
On 10 March 2010 19:41, Jean-Baptiste Onofre <jb...@nanthrax.net> wrote:
> Hi guys,
>
> FYI, I began to implement SMX4 unit tests in component like
> servicemix-exec:
>
>
> http://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java
>
> Regards
> JB
>
>
> Eoghan Glynn wrote:
>
>> Ryan,
>>
>> For integration tests of your new OSGi components running against SMX4,
>> the
>> pax-exam based NMR tests[1] provide quite a neat template.
>>
>> Alternatively, a more cut-down integration testing framework is provided
>> by
>> karaf testing support[2], which has the advantage of more faithfully
>> reproducing the karaf runtime environment (the system properties &
>> packages
>> etc.)
>>
>> I know this doesn't answer your question about existing SMX3 tests, but
>> may
>> give you some ideas about testing your new stuff.
>>
>> Cheers,
>> Eoghan
>>
>> [1]
>>
>> http://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/itests
>>
>> [2]
>>
>> http://svn.apache.org/repos/asf/felix/trunk/karaf/tooling/testing/src/main/java/org/apache/felix/karaf/testing/AbstractIntegrationTest.java
>>
>> On 10 March 2010 17:05, Ryan Moquin <fr...@gmail.com> wrote:
>>
>> I was wondering if there was any way to convert SMX3 unit tests to test
>>> against SMX4? I know SMX4 has a JBI container and that SM3 SAs should
>>> deploy in it, but I've hit some minor snags before. Also, I was
>>> considering
>>> creating some OSGI component, but would like to be able to test those
>>> like
>>> I
>>> was testing my SMX3 components.
>>>
>>> Thanks!!
>>> Ryan
>>>
>>>
>>
> --
> Jean-Baptiste Onofré
> ---------------------------------
> HomePage
> http://www.nanthrax.net
> ---------------------------------
> Contacts
> jbonofre@apache.org
> jb@nanthrax.net
> ---------------------------------
> OpenSource
> BuildProcess/AutoDeploy
> http://buildprocess.sourceforge.net
> Apache ServiceMix
> http://servicemix.apache.org
> -----------------------------------
> PGP : 17D4F086
>
Re: SMX4 and unit/integration testing
Posted by Ryan Moquin <fr...@gmail.com>.
Interesting thanks for the information. Having examples is all I need,
thanks!!
Ryan
On Wed, Mar 10, 2010 at 2:41 PM, Jean-Baptiste Onofre <jb...@nanthrax.net>wrote:
> Hi guys,
>
> FYI, I began to implement SMX4 unit tests in component like
> servicemix-exec:
>
>
> http://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java
>
> Regards
> JB
>
>
> Eoghan Glynn wrote:
>
>> Ryan,
>>
>> For integration tests of your new OSGi components running against SMX4,
>> the
>> pax-exam based NMR tests[1] provide quite a neat template.
>>
>> Alternatively, a more cut-down integration testing framework is provided
>> by
>> karaf testing support[2], which has the advantage of more faithfully
>> reproducing the karaf runtime environment (the system properties &
>> packages
>> etc.)
>>
>> I know this doesn't answer your question about existing SMX3 tests, but
>> may
>> give you some ideas about testing your new stuff.
>>
>> Cheers,
>> Eoghan
>>
>> [1]
>>
>> http://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/itests
>>
>> [2]
>>
>> http://svn.apache.org/repos/asf/felix/trunk/karaf/tooling/testing/src/main/java/org/apache/felix/karaf/testing/AbstractIntegrationTest.java
>>
>> On 10 March 2010 17:05, Ryan Moquin <fr...@gmail.com> wrote:
>>
>> I was wondering if there was any way to convert SMX3 unit tests to test
>>> against SMX4? I know SMX4 has a JBI container and that SM3 SAs should
>>> deploy in it, but I've hit some minor snags before. Also, I was
>>> considering
>>> creating some OSGI component, but would like to be able to test those
>>> like
>>> I
>>> was testing my SMX3 components.
>>>
>>> Thanks!!
>>> Ryan
>>>
>>>
>>
> --
> Jean-Baptiste Onofré
> ---------------------------------
> HomePage
> http://www.nanthrax.net
> ---------------------------------
> Contacts
> jbonofre@apache.org
> jb@nanthrax.net
> ---------------------------------
> OpenSource
> BuildProcess/AutoDeploy
> http://buildprocess.sourceforge.net
> Apache ServiceMix
> http://servicemix.apache.org
> -----------------------------------
> PGP : 17D4F086
>
Re: SMX4 and unit/integration testing
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi guys,
FYI, I began to implement SMX4 unit tests in component like servicemix-exec:
http://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java
Regards
JB
Eoghan Glynn wrote:
> Ryan,
>
> For integration tests of your new OSGi components running against SMX4, the
> pax-exam based NMR tests[1] provide quite a neat template.
>
> Alternatively, a more cut-down integration testing framework is provided by
> karaf testing support[2], which has the advantage of more faithfully
> reproducing the karaf runtime environment (the system properties & packages
> etc.)
>
> I know this doesn't answer your question about existing SMX3 tests, but may
> give you some ideas about testing your new stuff.
>
> Cheers,
> Eoghan
>
> [1]
> http://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/itests
>
> [2]
> http://svn.apache.org/repos/asf/felix/trunk/karaf/tooling/testing/src/main/java/org/apache/felix/karaf/testing/AbstractIntegrationTest.java
>
> On 10 March 2010 17:05, Ryan Moquin <fr...@gmail.com> wrote:
>
>> I was wondering if there was any way to convert SMX3 unit tests to test
>> against SMX4? I know SMX4 has a JBI container and that SM3 SAs should
>> deploy in it, but I've hit some minor snags before. Also, I was
>> considering
>> creating some OSGI component, but would like to be able to test those like
>> I
>> was testing my SMX3 components.
>>
>> Thanks!!
>> Ryan
>>
>
--
Jean-Baptiste Onofré
---------------------------------
HomePage
http://www.nanthrax.net
---------------------------------
Contacts
jbonofre@apache.org
jb@nanthrax.net
---------------------------------
OpenSource
BuildProcess/AutoDeploy
http://buildprocess.sourceforge.net
Apache ServiceMix
http://servicemix.apache.org
-----------------------------------
PGP : 17D4F086
Re: SMX4 and unit/integration testing
Posted by Eoghan Glynn <eo...@gmail.com>.
Ryan,
For integration tests of your new OSGi components running against SMX4, the
pax-exam based NMR tests[1] provide quite a neat template.
Alternatively, a more cut-down integration testing framework is provided by
karaf testing support[2], which has the advantage of more faithfully
reproducing the karaf runtime environment (the system properties & packages
etc.)
I know this doesn't answer your question about existing SMX3 tests, but may
give you some ideas about testing your new stuff.
Cheers,
Eoghan
[1]
http://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk/jbi/itests/src/test/java/org/apache/servicemix/jbi/itests
[2]
http://svn.apache.org/repos/asf/felix/trunk/karaf/tooling/testing/src/main/java/org/apache/felix/karaf/testing/AbstractIntegrationTest.java
On 10 March 2010 17:05, Ryan Moquin <fr...@gmail.com> wrote:
> I was wondering if there was any way to convert SMX3 unit tests to test
> against SMX4? I know SMX4 has a JBI container and that SM3 SAs should
> deploy in it, but I've hit some minor snags before. Also, I was
> considering
> creating some OSGI component, but would like to be able to test those like
> I
> was testing my SMX3 components.
>
> Thanks!!
> Ryan
>