From 2ca3589fd7faff9d2fd7ba20ee7c98e80852b7c6 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Tue, 21 Apr 2020 14:16:43 +0300 Subject: [PATCH] Revert "Formatting" This reverts commit d27efd71 --- pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java | 6 ++---- 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; -- 2.39.5