aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2024-10-12 18:29:37 +0300
committerDecebal Suiu <decebal.suiu@gmail.com>2024-10-12 18:29:37 +0300
commit77fe308856119c8e178a547c6306f184d439a219 (patch)
tree9970ca886444aa3bfa9f97f8ca2910a86ba5d1e1
parent5b61851bb1713b74710cede42e85e8fbb0f8fead (diff)
downloadpf4j-77fe308856119c8e178a547c6306f184d439a219.tar.gz
pf4j-77fe308856119c8e178a547c6306f184d439a219.zip
Exclude junit4 as transitive dependency
-rw-r--r--pf4j/pom.xml6
-rw-r--r--pf4j/src/test/java/org/pf4j/SecurePluginManagerWrapperTest.java17
2 files changed, 14 insertions, 9 deletions
diff --git a/pf4j/pom.xml b/pf4j/pom.xml
index 4a587b6..7061db6 100644
--- a/pf4j/pom.xml
+++ b/pf4j/pom.xml
@@ -192,6 +192,12 @@
<artifactId>compile-testing</artifactId>
<version>0.21.0</version>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
</dependencies>
diff --git a/pf4j/src/test/java/org/pf4j/SecurePluginManagerWrapperTest.java b/pf4j/src/test/java/org/pf4j/SecurePluginManagerWrapperTest.java
index f2a1a9a..adf0e2e 100644
--- a/pf4j/src/test/java/org/pf4j/SecurePluginManagerWrapperTest.java
+++ b/pf4j/src/test/java/org/pf4j/SecurePluginManagerWrapperTest.java
@@ -15,15 +15,6 @@
*/
package org.pf4j;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertThrows;
-
-import java.io.IOException;
-import java.nio.file.Path;
-import java.util.List;
-
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -33,6 +24,14 @@ import org.pf4j.test.TestExtension;
import org.pf4j.test.TestExtensionPoint;
import org.pf4j.test.TestPlugin;
+import java.io.IOException;
+import java.nio.file.Path;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
public class SecurePluginManagerWrapperTest {
private static final String OTHER_PLUGIN_ID = "test-plugin-2";