Fixtypo for BloomfilterTest

This commit is contained in:
dota17 2020-03-18 14:49:08 +08:00
parent 2cbac58f7e
commit 00408690a2
5 changed files with 14 additions and 14 deletions

View File

@ -322,7 +322,7 @@ public class ArrayCountingBloomFilterTest extends AbstractBloomFilterTest {
/** /**
* Tests that counts can be added to a new instance. * Tests that counts can be added to a new instance.
* *
* <p>Note: This test ensures the CountinBloomFilter * <p>Note: This test ensures the CountingBloomFilter
* can be created with whatever counts are required for other tests. * can be created with whatever counts are required for other tests.
*/ */
@Test @Test

View File

@ -35,7 +35,7 @@ public class DefaultBloomFilterMethodsTest extends AbstractBloomFilterTest {
private static class BF extends AbstractBloomFilter { private static class BF extends AbstractBloomFilter {
/** /**
* The bitset that defines this BloomFilter. * The bitSet that defines this BloomFilter.
*/ */
private final BitSet bitSet; private final BitSet bitSet;

View File

@ -110,7 +110,7 @@ public class DynamicHasherTest {
assertFalse(iter.hasNext()); assertFalse(iter.hasNext());
try { try {
iter.next(); iter.next();
fail("Should have thown NoSuchElementException"); fail("Should have thrown NoSuchElementException");
} catch (final NoSuchElementException ignore) { } catch (final NoSuchElementException ignore) {
// do nothing // do nothing
} }
@ -126,7 +126,7 @@ public class DynamicHasherTest {
try { try {
hasher.iterator(new Shape(testFunction, 3, 72, 17)); hasher.iterator(new Shape(testFunction, 3, 72, 17));
fail("Should have thown IllegalArgumentException"); fail("Should have thrown IllegalArgumentException");
} catch (final IllegalArgumentException expected) { } catch (final IllegalArgumentException expected) {
// do nothing // do nothing
} }

View File

@ -26,7 +26,7 @@ import org.junit.Test;
/** /**
* Tests of the {@link HashFunctionValidator}. * Tests of the {@link HashFunctionValidator}.
*/ */
public class HashFuctionValidatorTest { public class HashFunctionValidatorTest {
/** /**
* Tests that name is used in the equality check. * Tests that name is used in the equality check.

View File

@ -109,7 +109,7 @@ public class StaticHasherTest {
} }
/** /**
* Tests that passing a hasher other than a StaticHahser to the constructor works as * Tests that passing a hasher other than a StaticHasher to the constructor works as
* expected. * expected.
*/ */
@Test @Test
@ -140,7 +140,7 @@ public class StaticHasherTest {
} }
/** /**
* Tests that passing a hasher other than a StaticHahser and the wrong Shape to the * Tests that passing a hasher other than a StaticHasher and the wrong Shape to the
* constructor throws an IllegalArgumentException. * constructor throws an IllegalArgumentException.
*/ */
@Test @Test
@ -161,7 +161,7 @@ public class StaticHasherTest {
try { try {
new StaticHasher(testHasher, shape); new StaticHasher(testHasher, shape);
fail("Should have thown IllegalArgumentException"); fail("Should have thrown IllegalArgumentException");
} catch (final IllegalArgumentException expected) { } catch (final IllegalArgumentException expected) {
// do nothing // do nothing
} }
@ -196,7 +196,7 @@ public class StaticHasherTest {
/** /**
* Tests that if the iterator passed to the constructor contains a value greater than * Tests that if the iterator passed to the constructor contains a value greater than
* or equal to Shape.numerOfBits() an exception is thrown. * or equal to Shape.numberOfBits() an exception is thrown.
*/ */
@Test @Test
public void testConstructor_Iterator_ValueTooBig() { public void testConstructor_Iterator_ValueTooBig() {
@ -205,7 +205,7 @@ public class StaticHasherTest {
final Iterator<Integer> iter = Arrays.stream(values).iterator(); final Iterator<Integer> iter = Arrays.stream(values).iterator();
try { try {
new StaticHasher(iter, shape); new StaticHasher(iter, shape);
fail("Should have thown IllegalArgumentException"); fail("Should have thrown IllegalArgumentException");
} catch (final IllegalArgumentException expected) { } catch (final IllegalArgumentException expected) {
// do nothing // do nothing
} }
@ -222,7 +222,7 @@ public class StaticHasherTest {
final Iterator<Integer> iter = Arrays.stream(values).iterator(); final Iterator<Integer> iter = Arrays.stream(values).iterator();
try { try {
new StaticHasher(iter, shape); new StaticHasher(iter, shape);
fail("Should have thown IllegalArgumentException"); fail("Should have thrown IllegalArgumentException");
} catch (final IllegalArgumentException expected) { } catch (final IllegalArgumentException expected) {
// do nothing // do nothing
} }
@ -254,7 +254,7 @@ public class StaticHasherTest {
try { try {
new StaticHasher(hasher, shape); new StaticHasher(hasher, shape);
fail("Should have thown IllegalArgumentException"); fail("Should have thrown IllegalArgumentException");
} catch (final IllegalArgumentException expected) { } catch (final IllegalArgumentException expected) {
// do nothing // do nothing
} }
@ -298,7 +298,7 @@ public class StaticHasherTest {
} }
/** /**
* Tests that gitBits is called with the wrong shape an exeption is thrown. * Tests that gitBits is called with the wrong shape an exception is thrown.
*/ */
@Test @Test
public void testGetBits_WrongShape() { public void testGetBits_WrongShape() {
@ -307,7 +307,7 @@ public class StaticHasherTest {
try { try {
hasher.iterator(new Shape(testFunctionX, 3, 72, 17)); hasher.iterator(new Shape(testFunctionX, 3, 72, 17));
fail("Should have thown IllegalArgumentException"); fail("Should have thrown IllegalArgumentException");
} catch (final IllegalArgumentException expected) { } catch (final IllegalArgumentException expected) {
// do nothing // do nothing
} }