[ http://jira.codehaus.org/browse/MSUREFIRE-77?page=all ]
     
Brett Porter closed MSUREFIRE-77:
---------------------------------

      Assign To: Brett Porter
     Resolution: Won't Fix
    Fix Version:     (was: 2.2)

You have to use forkMode = once or always. The default, running inside the 
current JVM, cannot work as charset providers are looked up from the system 
classloader (despite the fact the javadocs say they come from the context 
classloader, that simply isn't true - the ctx CL is correctly set and never 
used for this purpose).

Will document.

> Service providers are not available during unit testing when defined by 
> dependencies
> ------------------------------------------------------------------------------------
>
>          Key: MSUREFIRE-77
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-77
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>     Reporter: Christian Schulte
>     Assignee: Brett Porter

>
>
> 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

Reply via email to