Remove unthrown exception from test setup().
This commit is contained in:
parent
b377f59613
commit
fa028268a8
|
@ -21,7 +21,6 @@ import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertFalse;
|
import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
import java.security.NoSuchAlgorithmException;
|
|
||||||
import java.util.PrimitiveIterator.OfInt;
|
import java.util.PrimitiveIterator.OfInt;
|
||||||
|
|
||||||
import org.apache.commons.collections4.bloomfilter.hasher.function.MD5Cyclic;
|
import org.apache.commons.collections4.bloomfilter.hasher.function.MD5Cyclic;
|
||||||
|
@ -97,11 +96,9 @@ public class DynamicHasherBuilderTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up the builder for testing.
|
* Sets up the builder for testing.
|
||||||
*
|
|
||||||
* @throws NoSuchAlgorithmException if MD5 is not available.
|
|
||||||
*/
|
*/
|
||||||
@Before
|
@Before
|
||||||
public void setup() throws NoSuchAlgorithmException {
|
public void setup() {
|
||||||
builder = new DynamicHasher.Builder(new MD5Cyclic());
|
builder = new DynamicHasher.Builder(new MD5Cyclic());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,6 @@ import static org.junit.Assert.assertFalse;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
import java.security.NoSuchAlgorithmException;
|
|
||||||
import java.util.PrimitiveIterator.OfInt;
|
import java.util.PrimitiveIterator.OfInt;
|
||||||
|
|
||||||
import org.apache.commons.collections4.bloomfilter.hasher.function.MD5Cyclic;
|
import org.apache.commons.collections4.bloomfilter.hasher.function.MD5Cyclic;
|
||||||
|
@ -67,11 +66,9 @@ public class DynamicHasherTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up the DynamicHasher.
|
* Sets up the DynamicHasher.
|
||||||
*
|
|
||||||
* @throws NoSuchAlgorithmException is MD5 is not available.
|
|
||||||
*/
|
*/
|
||||||
@Before
|
@Before
|
||||||
public void setup() throws NoSuchAlgorithmException {
|
public void setup() {
|
||||||
builder = new DynamicHasher.Builder(new MD5Cyclic());
|
builder = new DynamicHasher.Builder(new MD5Cyclic());
|
||||||
shape = new Shape(new MD5Cyclic(), 3, 72, 17);
|
shape = new Shape(new MD5Cyclic(), 3, 72, 17);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue