From 6d4f2b2a95d066117b1898783aa88f406795ea7b Mon Sep 17 00:00:00 2001 From: Jason Dahlke Date: Fri, 15 Sep 2023 20:08:00 +0000 Subject: [PATCH] remove bouncycastle dependency --- pom.xml | 12 ------------ .../core/channels/FillChannelFactoryTest.java | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index 3fda85c36d..fd6996bb9c 100644 --- a/pom.xml +++ b/pom.xml @@ -46,7 +46,6 @@ ${project.version} ${project.basedir}/contrib/checkstyle.xml - 1.67 1.5.0 1.15 4.4 @@ -318,12 +317,6 @@ ${dep.junit.version} test - - org.bouncycastle - bcprov-jdk15on - ${dep.bcprov-jdk15on.version} - test - org.junit.jupiter junit-jupiter @@ -551,11 +544,6 @@ org.slf4j slf4j-api - - org.bouncycastle - bcprov-jdk15on - test - org.glassfish.jersey.test-framework.providers jersey-test-framework-provider-jetty diff --git a/src/test/java/emissary/core/channels/FillChannelFactoryTest.java b/src/test/java/emissary/core/channels/FillChannelFactoryTest.java index bab745981b..c8b0bf8da4 100644 --- a/src/test/java/emissary/core/channels/FillChannelFactoryTest.java +++ b/src/test/java/emissary/core/channels/FillChannelFactoryTest.java @@ -1,12 +1,12 @@ package emissary.core.channels; import org.apache.commons.io.IOUtils; -import org.bouncycastle.util.Arrays; import org.junit.jupiter.api.Test; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.SeekableByteChannel; +import java.util.Arrays; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -14,7 +14,7 @@ class FillChannelFactoryTest { @Test - void testCreate() throws IOException { + void testCreate() { assertThrows(IllegalArgumentException.class, () -> FillChannelFactory.create(-1, (byte) 0)); }