This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch maven2surefire-jvm-communication
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to 
refs/heads/maven2surefire-jvm-communication by this push:
     new 43cfea6  fix testLoadInNewClassLoader
43cfea6 is described below

commit 43cfea6962f77bb028b05541db43b882a07ab79f
Author: tibordigana <[email protected]>
AuthorDate: Fri Feb 14 01:58:10 2020 +0100

    fix testLoadInNewClassLoader
---
 .../src/test/java/org/apache/maven/surefire/booter/ClasspathTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/surefire-booter/src/test/java/org/apache/maven/surefire/booter/ClasspathTest.java
 
b/surefire-booter/src/test/java/org/apache/maven/surefire/booter/ClasspathTest.java
index e9b8196..f4ad836 100644
--- 
a/surefire-booter/src/test/java/org/apache/maven/surefire/booter/ClasspathTest.java
+++ 
b/surefire-booter/src/test/java/org/apache/maven/surefire/booter/ClasspathTest.java
@@ -200,7 +200,7 @@ public class ClasspathTest
         String thisPath = "/" + target.getName().replace( '.', '/' ) + 
".class";
         URL url = target.getResource( thisPath );
         assertTrue( url.toString().endsWith( thisPath ) );
-        String oneClasspath = new URL( url.toString().replace( thisPath, "" ) 
).getFile();
+        String oneClasspath = new URL( url.toString().replace( thisPath, "" 
).replace( "!", "" ) ).getFile();
         assertTrue( new File( oneClasspath ).exists() );
         Classpath classpath = Classpath.emptyClasspath();
         ClassLoader classLoader = classpath.addClassPathElementUrl( new File( 
oneClasspath ).getCanonicalPath() )

Reply via email to