From 00408690a26587b45f6efc819553c02126b21c25 Mon Sep 17 00:00:00 2001 From: dota17 Date: Wed, 18 Mar 2020 14:49:08 +0800 Subject: [PATCH] Fixtypo for BloomfilterTest --- .../ArrayCountingBloomFilterTest.java | 2 +- .../DefaultBloomFilterMethodsTest.java | 2 +- .../bloomfilter/hasher/DynamicHasherTest.java | 4 ++-- ...est.java => HashFunctionValidatorTest.java} | 2 +- .../bloomfilter/hasher/StaticHasherTest.java | 18 +++++++++--------- 5 files changed, 14 insertions(+), 14 deletions(-) rename src/test/java/org/apache/commons/collections4/bloomfilter/hasher/{HashFuctionValidatorTest.java => HashFunctionValidatorTest.java} (99%) diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/ArrayCountingBloomFilterTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/ArrayCountingBloomFilterTest.java index 3f26a87c1..7bd5e5d50 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/ArrayCountingBloomFilterTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/ArrayCountingBloomFilterTest.java @@ -322,7 +322,7 @@ public class ArrayCountingBloomFilterTest extends AbstractBloomFilterTest { /** * Tests that counts can be added to a new instance. * - *

Note: This test ensures the CountinBloomFilter + *

Note: This test ensures the CountingBloomFilter * can be created with whatever counts are required for other tests. */ @Test diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBloomFilterMethodsTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBloomFilterMethodsTest.java index 51c9d4193..c07896e0b 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBloomFilterMethodsTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/DefaultBloomFilterMethodsTest.java @@ -35,7 +35,7 @@ public class DefaultBloomFilterMethodsTest extends AbstractBloomFilterTest { private static class BF extends AbstractBloomFilter { /** - * The bitset that defines this BloomFilter. + * The bitSet that defines this BloomFilter. */ private final BitSet bitSet; 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 ba4308a5a..e79f6b7fe 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 @@ -110,7 +110,7 @@ public class DynamicHasherTest { assertFalse(iter.hasNext()); try { iter.next(); - fail("Should have thown NoSuchElementException"); + fail("Should have thrown NoSuchElementException"); } catch (final NoSuchElementException ignore) { // do nothing } @@ -126,7 +126,7 @@ public class DynamicHasherTest { try { hasher.iterator(new Shape(testFunction, 3, 72, 17)); - fail("Should have thown IllegalArgumentException"); + fail("Should have thrown IllegalArgumentException"); } catch (final IllegalArgumentException expected) { // do nothing } diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/HashFuctionValidatorTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/HashFunctionValidatorTest.java similarity index 99% rename from src/test/java/org/apache/commons/collections4/bloomfilter/hasher/HashFuctionValidatorTest.java rename to src/test/java/org/apache/commons/collections4/bloomfilter/hasher/HashFunctionValidatorTest.java index ac9e0b58d..625cb645e 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/HashFuctionValidatorTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/HashFunctionValidatorTest.java @@ -26,7 +26,7 @@ import org.junit.Test; /** * Tests of the {@link HashFunctionValidator}. */ -public class HashFuctionValidatorTest { +public class HashFunctionValidatorTest { /** * Tests that name is used in the equality check. diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/StaticHasherTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/StaticHasherTest.java index 8518586ec..f2718cfe5 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/StaticHasherTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/StaticHasherTest.java @@ -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. */ @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. */ @Test @@ -161,7 +161,7 @@ public class StaticHasherTest { try { new StaticHasher(testHasher, shape); - fail("Should have thown IllegalArgumentException"); + fail("Should have thrown IllegalArgumentException"); } catch (final IllegalArgumentException expected) { // do nothing } @@ -196,7 +196,7 @@ public class StaticHasherTest { /** * 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 public void testConstructor_Iterator_ValueTooBig() { @@ -205,7 +205,7 @@ public class StaticHasherTest { final Iterator iter = Arrays.stream(values).iterator(); try { new StaticHasher(iter, shape); - fail("Should have thown IllegalArgumentException"); + fail("Should have thrown IllegalArgumentException"); } catch (final IllegalArgumentException expected) { // do nothing } @@ -222,7 +222,7 @@ public class StaticHasherTest { final Iterator iter = Arrays.stream(values).iterator(); try { new StaticHasher(iter, shape); - fail("Should have thown IllegalArgumentException"); + fail("Should have thrown IllegalArgumentException"); } catch (final IllegalArgumentException expected) { // do nothing } @@ -254,7 +254,7 @@ public class StaticHasherTest { try { new StaticHasher(hasher, shape); - fail("Should have thown IllegalArgumentException"); + fail("Should have thrown IllegalArgumentException"); } catch (final IllegalArgumentException expected) { // 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 public void testGetBits_WrongShape() { @@ -307,7 +307,7 @@ public class StaticHasherTest { try { hasher.iterator(new Shape(testFunctionX, 3, 72, 17)); - fail("Should have thown IllegalArgumentException"); + fail("Should have thrown IllegalArgumentException"); } catch (final IllegalArgumentException expected) { // do nothing }