From: Decebal Suiu Date: Tue, 21 Apr 2020 11:16:43 +0000 (+0300) Subject: Revert "Formatting" X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fheads%2F%23358;p=pf4j.git Revert "Formatting" This reverts commit d27efd71 --- 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;