From fa028268a8b637706c887c794868e6e191edd667 Mon Sep 17 00:00:00 2001 From: aherbert Date: Mon, 17 Feb 2020 13:25:47 +0000 Subject: [PATCH] Remove unthrown exception from test setup(). --- .../bloomfilter/hasher/DynamicHasherBuilderTest.java | 5 +---- .../collections4/bloomfilter/hasher/DynamicHasherTest.java | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/DynamicHasherBuilderTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/DynamicHasherBuilderTest.java index a63e91179..33b044cfa 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/DynamicHasherBuilderTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/DynamicHasherBuilderTest.java @@ -21,7 +21,6 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -import java.security.NoSuchAlgorithmException; import java.util.PrimitiveIterator.OfInt; import org.apache.commons.collections4.bloomfilter.hasher.function.MD5Cyclic; @@ -97,11 +96,9 @@ public class DynamicHasherBuilderTest { /** * Sets up the builder for testing. - * - * @throws NoSuchAlgorithmException if MD5 is not available. */ @Before - public void setup() throws NoSuchAlgorithmException { + public void setup() { builder = new DynamicHasher.Builder(new MD5Cyclic()); } } diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/DynamicHasherTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/DynamicHasherTest.java index fa4efa5f0..0c7797082 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/DynamicHasherTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/DynamicHasherTest.java @@ -22,7 +22,6 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; -import java.security.NoSuchAlgorithmException; import java.util.PrimitiveIterator.OfInt; import org.apache.commons.collections4.bloomfilter.hasher.function.MD5Cyclic; @@ -67,11 +66,9 @@ public class DynamicHasherTest { /** * Sets up the DynamicHasher. - * - * @throws NoSuchAlgorithmException is MD5 is not available. */ @Before - public void setup() throws NoSuchAlgorithmException { + public void setup() { builder = new DynamicHasher.Builder(new MD5Cyclic()); shape = new Shape(new MD5Cyclic(), 3, 72, 17); }