thanks again!!! for your patience!

On Sep 9, 2010, at 3:34 PM, Richard S. Hall wrote:

> On 9/9/10 6:28, Anna Karina Nava Soriano wrote:
>> Hello everyone!
>> 
>> Nice tool junit4osgi!
>> 
>> I am working with junit4osgi and needed to extend the JunitExtender class to 
>> run tests in a particular way (the reason is not important).  
>> MyJunitExtender is the new class and it extends JunitExtender and only 
>> overrides the run method.  I tested it and this was working fine! (obviously 
>> I changed metadata.xml to tell the new MyJunitExtender class) so far so good.
>> 
>> The thing is that I need now org.junit.internal.JUnitSystem.  So in 
>> MyJunitExtender I added  "import org.junit.internal.JUnitSystem;" then I 
>> compile the project again, and the import-Package in my new MANIFEST looks 
>> like this:
>> ....
>> Import-Package: org.apache.felix.ipojo.junit4osgi.helpers, org.junit.i
>>  nternal, junit.runner, org.apache.felix.ipojo;version=1.6, org.junit.
>>  runner.notification, javax.xml.parsers, org.osgi.service.packageadmin
>>  ;version=1.1, org.w3c.dom, junit.textui, org.apache.felix.ipojo.parse
>>  r;version=1.6, org.junit, junit.extensions, org.junit.runner.manipula
>>  tion, org.osgi.service.log;version=1.2, junit.framework, org.apache.f
>>  elix.ipojo.junit4osgi, org.apache.felix.ipojo.architecture;version=1.
>>  6, org.junit.runner, org.osgi.framework;version=1.2, org.osgi.service
>>  .cm;version=1.1, org.apache.felix.ipojo.metadata
>> ....
>> 
>> as you can see, the org.junit.internal is there.  I install this new jar in 
>> my Felix (see the last line)
>> ....
>> [ 320] [Active     ] [    1] 
>> file:/Applications/NetBeans/sges-v3/glassfish/modules/junit-4.8.1.jar
>> [ 326] [Active     ] [    1] Apache Felix iPOJO Extender Pattern Handler 
>> (1.4.0)
>> [ 327] [Installed  ] [    1] Apache Felix iPOJO OSGi Junit Runner - Felix 
>> Command (1.0.0)
>> [ 330] [Installed  ] [    1] Apache Felix iPOJO OSGi Junit Runner - Swing 
>> Gui (1.0.0)
>> [ 332] [Active     ] [    1] Apache Felix iPOJO (1.6.4)
>> [ 339] [Installed  ] [    1] Broker Project Services TESTS (1.3)
>> [ 354] [Installed  ] [    1] Apache Felix iPOJO OSGi Junit Runner 
>> (1.1.0.SNAPSHOT)
>> 
>> and when I do "start 354"  it keeps saying:
>> "org.osgi.framework.BundleException: Unresolved constraint in bundle 
>> org.apache.felix.ipojo.junit4osgi [354]: package; 
>> (package=org.junit.internal)"
>> 
>> I know probably there is some stupid thing that I am missing.  My junit file 
>> (you can see it with the id "320") has this manifest:
>> "Manifest-Version: 1.0
>> Ant-Version: Apache Ant 1.7.1
>> Created-By: 1.5.0_20-141 (Apple Inc.)"
> 
> If that's all it has, then it is not a bundle. It needs to, at least, export 
> its packages.
> 
> -> richard
> 
>> So... does somebody knows what am I doing wrong? I am new in the junit4osgi 
>> world and I always get kind of lost with all dependencies.
>> 
>> Thank you so much in advance!
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to