We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34fe421 + bf0162a commit 9ab7743Copy full SHA for 9ab7743
addOns/kotlin/src/test/java/org/zaproxy/addon/kotlin/ClassLoaderTests.java
@@ -24,6 +24,7 @@
24
import static org.junit.jupiter.api.Assertions.assertThrows;
25
import static org.zaproxy.addon.kotlin.TestUtils.getScriptContents;
26
27
+import java.net.URI;
28
import java.net.URL;
29
import java.net.URLClassLoader;
30
import java.nio.file.Paths;
@@ -45,7 +46,7 @@ private ClassLoader testFallbackClassLoader() throws Exception {
45
46
.getFile())
47
.getParent()
48
.toString();
- return new URLClassLoader(new URL[] {new URL("file://" + testClasspath + "/")});
49
+ return new URLClassLoader(new URL[] {new URI("file://" + testClasspath + "/").toURL()});
50
}
51
52
@Test
0 commit comments