Browse Source

Exclude junit4 as transitive dependency

pull/592/head
Decebal Suiu 1 month ago
parent
commit
77fe308856
  1. 6
      pf4j/pom.xml
  2. 17
      pf4j/src/test/java/org/pf4j/SecurePluginManagerWrapperTest.java

6
pf4j/pom.xml

@ -192,6 +192,12 @@
<artifactId>compile-testing</artifactId> <artifactId>compile-testing</artifactId>
<version>0.21.0</version> <version>0.21.0</version>
<scope>test</scope> <scope>test</scope>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
</dependencies> </dependencies>

17
pf4j/src/test/java/org/pf4j/SecurePluginManagerWrapperTest.java

@ -15,15 +15,6 @@
*/ */
package org.pf4j; 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.AfterEach;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@ -33,6 +24,14 @@ import org.pf4j.test.TestExtension;
import org.pf4j.test.TestExtensionPoint; import org.pf4j.test.TestExtensionPoint;
import org.pf4j.test.TestPlugin; 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 { public class SecurePluginManagerWrapperTest {
private static final String OTHER_PLUGIN_ID = "test-plugin-2"; private static final String OTHER_PLUGIN_ID = "test-plugin-2";

Loading…
Cancel
Save