Remove unthrown exception from test setup().

This commit is contained in:
aherbert 2020-02-17 13:25:47 +00:00
parent b377f59613
commit fa028268a8
2 changed files with 2 additions and 8 deletions

View File

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

View File

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