]> source.dussan.org Git - pf4j.git/commitdiff
Revert "Formatting" #358 360/head
authorDecebal Suiu <decebal.suiu@gmail.com>
Tue, 21 Apr 2020 11:16:43 +0000 (14:16 +0300)
committerDecebal Suiu <decebal.suiu@gmail.com>
Tue, 21 Apr 2020 11:16:43 +0000 (14:16 +0300)
This reverts commit d27efd71

pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java
pf4j/src/test/java/org/pf4j/PluginDependencyTest.java

index 1a6d97c4f0dd28d77a40a66aecbc877877710cb8..64adbc1d88deaafc47c0d145dd02afe27478d872 100644 (file)
@@ -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));
     }
-
 }
index 84ccfc7c8f0b08b87d4360e976e90385bb1f83a2..c605d237e44e103b0f79388eef8cefbb6d1934d5 100644 (file)
@@ -15,6 +15,7 @@
  */
 package org.pf4j;
 
+
 import org.junit.jupiter.api.Test;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;