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); }