| 
| Testing an OSGI/JDT/Eclipse plugin with Pax-exam [message #1706252] | Tue, 25 August 2015 06:24 |  | 
| Eclipse User  |  |  |  |  | Hi, all. Hope this is the right forum. If not, sorry for the noise, please redirect me. 
 My project is a plugin that uses JDT, built with maven, runs from an OSGI Activator.java. JDT creates an eclipse workspace to compile java classes. Works fine so I want to write tests for my classes.
 
 Since this runs "...as... OSGI Framework", I'm using pax-exam to write my tests. Most of my classes are eclipse workspace-dependent.
 
 But as soon as I start adding the dependencies for the test, eclipse, soon org.eclipse.osgi is required. After adding it I get
 
 java.lang.ClassCastException: org.eclipse.osgi.framework.internal.core.SystemBundleActivator cannot be cast to org.osgi.framework.BundleActivator
 
 I saw an stackoverflow post saying that it is not possible to run org.eclipse.osgi functionalities (meaning equinox) using Felix.
 
 So, where's my problem? am I having a conceptual error? Can I test eclipse workspace objects within felix? Which other testing options do I have?
 
 Thanks in advance.
 
 Rodolfo.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03500 seconds