You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Saadat Dowlati <sd...@coincident.com> on 2011/05/15 19:08:18 UTC
problem using JUnit4OSGi with Eclipse Virgo Web Server (eclipse equinox)
Hello,
I am not sure if this is the right list to ask this question, but the
documentation says that JUnit4OSGi and its swing runner are supported on
eclipse equinox (the basis for virgo). As such, I hope someone on this list
has the insights to shed some light on this matter.
I'm trying to get the JUnit4OSGi test framework working for my application
which is hosted on eclipse Virgo (based on eclipse equinox).
I have followed the instructions on the JUnit4OSGi website and developed a
separate test bundle for my integration test, using its swing test runner
(org.apache.felix.ipojo.junit4osgi.swing-gui-1.0.0). When I deploy my bundle
and this runner in virgo, they both start successfully, but the runner GUI
doesn't pop up as expected.
I'm using virgo-tomcat-server-3.0.0.M04. I have dropped the required
JUnit4OSGi jars in the 'usr' repository of viro and dropped the
org.apache.felix.ipojo.junit4osgi.swing-gui-1.0.0 bundle and my test bundle
in the viro pickup folder. I can provide more detail about the manifest etc.
My dev env is on Windows 7.
I would appreciate help with this.
--
thanks & regards,
s.dowlati
Re: problem using JUnit4OSGi with Eclipse Virgo Web Server (eclipse equinox)
Posted by Saadat Dowlati <sd...@coincident.com>.
Hi Clement,
Yes, the bundle is resolved and gets started without any error. As a
sanity check, I have implemented the BundleActivator and log the start
method.
I would apprciate you could provide all the steps that you take in using
junit4osgi on equinox.
Here's what I have and do:
I have a single bundle which contains two test classes, one extends
OSGiTestCase,
containing a few test cases, and the other has OSGiTestSuite which adds the
class containing the test cases.
Here's the manifest:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: sdowlati
Build-Jdk: 1.6.0_20
Test-Suite: com.coincident.ema.test.EMATestSuite
Tool: Bundlor 1.0.0.RELEASE
Bundle-Activator: com.coincident.ema.test.Activator
Bundle-Description: EMA Integration Test
Export-Package: com.coincident.ema.test;version="0.3.0";uses:="junit.f
ramework,org.apache.felix.ipojo.junit4osgi,org.osgi.framework"
Bundle-Version: 0.3.0
Bundle-ManifestVersion: 2
Bundle-Name: EMA-INTEGRATION-Test Suite
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Service-Component:
Import-Package: junit.framework,org.apache.felix.ipojo.junit4osgi,org.
osgi.framework;version=0
Bundle-SymbolicName: com.coincident.ema.test
I drop the following jars in virgo/repository/usr folder:
org.apache.felix.ipojo.handler.extender-1.4.0.jar
org.apache.felix.ipojo.junit4osgi.swing-gui-1.0.0.jar
org.apache.felix.ipojo.junit4osgi-1.0.0.jar
org.apache.felix.ipojo-1.8.0.jar
and drop my test bundle in virgo 'pickup' folder.
I have also tried dropping org.apache.felix.ipojo.junit4osgi.swing-gui in
the 'pickup' folder, thinking that the GUI is in this bundle and would pop
up and as I add bundles with declared Test-Suite in thier manifest would be
detected by the GUI.
--
regards,
s.dowlati
On Thu, May 19, 2011 at 3:11 AM, Clement Escoffier <
clement.escoffier@gmail.com> wrote:
> Hi,
>
> Could you tell me if the all bundles are resolved correctly ? junit4osgi
> works on plain equinox, but I never tried on Virgo.
>
>
> Regards,
>
> Clement
>
> On 15.05.11 19:08, "Saadat Dowlati" <sd...@coincident.com> wrote:
>
> >Hello,
> > I am not sure if this is the right list to ask this question, but
> >the
> >documentation says that JUnit4OSGi and its swing runner are supported on
> >eclipse equinox (the basis for virgo). As such, I hope someone on this
> >list
> >has the insights to shed some light on this matter.
> >
> >I'm trying to get the JUnit4OSGi test framework working for my application
> >which is hosted on eclipse Virgo (based on eclipse equinox).
> >I have followed the instructions on the JUnit4OSGi website and developed a
> >separate test bundle for my integration test, using its swing test runner
> >(org.apache.felix.ipojo.junit4osgi.swing-gui-1.0.0). When I deploy my
> >bundle
> >and this runner in virgo, they both start successfully, but the runner GUI
> >doesn't pop up as expected.
> >
> >I'm using virgo-tomcat-server-3.0.0.M04. I have dropped the required
> >JUnit4OSGi jars in the 'usr' repository of viro and dropped the
> >org.apache.felix.ipojo.junit4osgi.swing-gui-1.0.0 bundle and my test
> >bundle
> >in the viro pickup folder. I can provide more detail about the manifest
> >etc.
> >My dev env is on Windows 7.
> >
> >I would appreciate help with this.
> >--
> >thanks & regards,
> >s.dowlati
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
>
Re: problem using JUnit4OSGi with Eclipse Virgo Web Server (eclipse
equinox)
Posted by Clement Escoffier <cl...@gmail.com>.
Hi,
Could you tell me if the all bundles are resolved correctly ? junit4osgi
works on plain equinox, but I never tried on Virgo.
Regards,
Clement
On 15.05.11 19:08, "Saadat Dowlati" <sd...@coincident.com> wrote:
>Hello,
> I am not sure if this is the right list to ask this question, but
>the
>documentation says that JUnit4OSGi and its swing runner are supported on
>eclipse equinox (the basis for virgo). As such, I hope someone on this
>list
>has the insights to shed some light on this matter.
>
>I'm trying to get the JUnit4OSGi test framework working for my application
>which is hosted on eclipse Virgo (based on eclipse equinox).
>I have followed the instructions on the JUnit4OSGi website and developed a
>separate test bundle for my integration test, using its swing test runner
>(org.apache.felix.ipojo.junit4osgi.swing-gui-1.0.0). When I deploy my
>bundle
>and this runner in virgo, they both start successfully, but the runner GUI
>doesn't pop up as expected.
>
>I'm using virgo-tomcat-server-3.0.0.M04. I have dropped the required
>JUnit4OSGi jars in the 'usr' repository of viro and dropped the
>org.apache.felix.ipojo.junit4osgi.swing-gui-1.0.0 bundle and my test
>bundle
>in the viro pickup folder. I can provide more detail about the manifest
>etc.
>My dev env is on Windows 7.
>
>I would appreciate help with this.
>--
>thanks & regards,
>s.dowlati
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org