You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Fabulich (JIRA)" <ji...@codehaus.org> on 2007/11/24 00:11:58 UTC

[jira] Closed: (SUREFIRE-162) Service providers are not available during unit testing when defined by dependencies

     [ http://jira.codehaus.org/browse/SUREFIRE-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich closed SUREFIRE-162.
---------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.x)

This test passes just fine with useSystemClassLoader=true; integration test checked in 597756.  It would be nice if you didn't have to pass that parameter in (or if useSystemClassLoader were the default) but that would create a lot of other problems (particularly with plexus version conflicts).  That's SUREFIRE-334 and it probably won't get fixed any time soon.

Beware of SUREFIRE-389 which I just fixed; without that useSystemClassLoader=true may cause an IncompatibleClassChangeError.

> Service providers are not available during unit testing when defined by dependencies
> ------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-162
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-162
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Christian Schulte
>         Attachments: jcharset-1.2.1.jar, MSUREFIRE-77.tar.bz2, MSUREFIRE77TestCase.java, pom.xml
>
>
> If a dependency defines some service provider by e.g. a file like  META-INF/services/java.nio.charset.spi.CharsetProvider these providers are not available during unit testing. For this example an UnsupportedEncodingException would be thrown when using a charset defined in the file during unit testing. For Reference see: <http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Service%20Provider> or <http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/spi/CharsetProvider.html>.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira