[ 
https://issues.apache.org/jira/browse/HTTPCORE-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14716274#comment-14716274
 ] 

Oleg Kalnichevski commented on HTTPCORE-406:
--------------------------------------------

Hi Benson

For some reason the OSGi tests fail on the build server
https://builds.apache.org/view/H-L/view/HttpComponents/job/httpcomponents-core-4.4.x/104/org.apache.httpcomponents$httpcore-osgi/#showFailuresLink

I am also seeing this test failure intermittently. I know next to nothing about 
OSGi and I would not dare try to fix it by myself. 

{noformat}
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.483 sec <<< 
FAILURE! - in org.apache.http.osgi.BasicIT
testBasicExecution(org.apache.http.osgi.BasicIT)  Time elapsed: 0.097 sec  <<< 
ERROR!
java.lang.ClassNotFoundException: org.mockito.Mockito not found by 
PAXEXAM-PROBE-9c062713-fc30-4b51-bdbf-8fb7922d1394 [18]
        at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1500)
        at 
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
        at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1923)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.apache.http.osgi.BasicIT.testBasicExecution(BasicIT.java:59)
{noformat}

Oleg

> Refactor some test code to be sharable with OSGi tests
> ------------------------------------------------------
>
>                 Key: HTTPCORE-406
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-406
>             Project: HttpComponents HttpCore
>          Issue Type: Task
>            Reporter: Benson Margulies
>             Fix For: 4.4.2, 5.0-alpha1
>
>
> It would be good to use the test server when testing the OSGi bundle. 
> However, it's in src/test/java.
> There are three ways to reuse it: 
> *  
> [https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html]
>  business 
> * create another Maven subproject.
> * 
> [http://www.mojohaus.org/build-helper-maven-plugin/add-test-source-mojo.html] 
> and borrow the source directory.
> While I'd usually consider the third to be really ugly, it does make it easy 
> to get the server into the 'test bundle' built by pax-exam. 
> I intend to try to work out how to use the first alternative.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to