aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java6
-rw-r--r--pf4j/src/test/java/org/pf4j/PluginDependencyTest.java1
2 files changed, 3 insertions, 4 deletions
diff --git a/pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java b/pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java
index 1a6d97c..64adbc1 100644
--- a/pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java
+++ b/pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java
@@ -98,9 +98,8 @@ public class PluginClassLoaderTest {
PluginClasspath pluginClasspath = new DefaultPluginClasspath();
- ClassLoader parentClassLoader = PluginClassLoaderTest.class.getClassLoader();
- parentLastPluginClassLoader = new PluginClassLoader(pluginManager, pluginDescriptor, parentClassLoader);
- parentFirstPluginClassLoader = new PluginClassLoader(pluginManager, pluginDescriptor, parentClassLoader, true);
+ parentLastPluginClassLoader = new PluginClassLoader(pluginManager, pluginDescriptor, PluginClassLoaderTest.class.getClassLoader());
+ parentFirstPluginClassLoader = new PluginClassLoader(pluginManager, pluginDescriptor, PluginClassLoaderTest.class.getClassLoader(), true);
for (String classesDirectory : pluginClasspath.getClassesDirectories()) {
File classesDirectoryFile = pluginZip.unzippedPath().resolve(classesDirectory).toFile();
@@ -228,5 +227,4 @@ public class PluginClassLoaderTest {
URL firstResource = list.get(0);
assertEquals(expectedFirstLine, Files.readAllLines(Paths.get(firstResource.toURI())).get(0));
}
-
}
diff --git a/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java b/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java
index 84ccfc7..c605d23 100644
--- a/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java
+++ b/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java
@@ -15,6 +15,7 @@
*/
package org.pf4j;
+
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;