diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2020-04-21 14:16:43 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2020-04-21 14:16:43 +0300 |
commit | 2ca3589fd7faff9d2fd7ba20ee7c98e80852b7c6 (patch) | |
tree | f8ce06729643ebbbb484723e353da044b7b04655 | |
parent | 2d48162fbefe18ab048e3c85e9753fa4b0171164 (diff) | |
download | pf4j-2ca3589fd7faff9d2fd7ba20ee7c98e80852b7c6.tar.gz pf4j-2ca3589fd7faff9d2fd7ba20ee7c98e80852b7c6.zip |
Revert "Formatting"#358
This reverts commit d27efd71
-rw-r--r-- | pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java | 6 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/PluginDependencyTest.java | 1 |
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; |