From d27efd71b4856a9f41328e69749d87a93ded61c4 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Tue, 21 Apr 2020 13:53:23 +0300 Subject: [PATCH] Formatting --- pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java | 6 ++++-- pf4j/src/test/java/org/pf4j/PluginDependencyTest.java | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java b/pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java index 64adbc1..1a6d97c 100644 --- a/pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java +++ b/pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java @@ -98,8 +98,9 @@ public class PluginClassLoaderTest { PluginClasspath pluginClasspath = new DefaultPluginClasspath(); - parentLastPluginClassLoader = new PluginClassLoader(pluginManager, pluginDescriptor, PluginClassLoaderTest.class.getClassLoader()); - parentFirstPluginClassLoader = new PluginClassLoader(pluginManager, pluginDescriptor, PluginClassLoaderTest.class.getClassLoader(), true); + ClassLoader parentClassLoader = PluginClassLoaderTest.class.getClassLoader(); + parentLastPluginClassLoader = new PluginClassLoader(pluginManager, pluginDescriptor, parentClassLoader); + parentFirstPluginClassLoader = new PluginClassLoader(pluginManager, pluginDescriptor, parentClassLoader, true); for (String classesDirectory : pluginClasspath.getClassesDirectories()) { File classesDirectoryFile = pluginZip.unzippedPath().resolve(classesDirectory).toFile(); @@ -227,4 +228,5 @@ 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 c605d23..84ccfc7 100644 --- a/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java +++ b/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java @@ -15,7 +15,6 @@ */ package org.pf4j; - import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; -- 2.39.5