It's what I'm trying to do but I can make this work :(

I have 4 projects/bundles in Eclipse:

1) test project - SCR "consumer" consumes PatchEngine (with the JUnit Plug-in 
Test)
2) patch engine - SCR "engine" provides PatchEngine, consumes 1..N PatchService
3) patch 1 - SCR "patch1" provides PatchService
3) patch 1 - SCR "patch2" provides PatchService

Regards,
Anthony

-----Original Message-----
From: Nick Wilson [mailto:[email protected]] 
Sent: vendredi 17 juin 2011 15:39
To: [email protected]
Subject: RE: How to test a declarative service in Eclipse, using JUnit Plug-in 
Test?

Hi Anthony,

In the "Run Configurations" for the test go to the Plug-ins tab. Change "Launch 
with" to "Plugins selected below only". In the list of plugins you can then set 
a start level.
Regards,

Nick


-----Original Message-----
From: Muller, Anthony [mailto:[email protected]] 
Sent: 17 June 2011 13:05
To: [email protected]
Subject: How to test a declarative service in Eclipse, using JUnit Plug-in Test?

Hello,

I'm trying to test a declarative service in Eclipse using JUnit Plug-in test.

It works quite fine, but "sometimes" my service is not found... I guess that is 
because the bundle loading order is not guaranty in OSGi and so, sometimes, the 
bundle containing the declarative service is loading after my test was 
running...

How to configure Eclipse/JUnit to fix that problem?

Thanks and regards,
Anthony
 

________________________________________________________________________
This e-mail has been scanned for all viruses.
________________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Reply via email to