Whitespace
This commit is contained in:
Gary Gregory 2024-10-04 11:26:13 -04:00
parent c5e5f978db
commit ba287b7c22
1 changed files with 8 additions and 7 deletions

View File

@ -31,12 +31,12 @@ import java.util.List;
import org.junit.jupiter.api.Test;
/**
* Test standard methods in the {@link BloomFilter} interface.
* Tests standard methods in the {@link BloomFilter} interface.
*/
public abstract class AbstractBloomFilterTest<T extends BloomFilter> {
/**
* Testing class returns the value as the only value.
* Test fixture class returns the value as the only value.
*/
public static class BadHasher implements Hasher {
@ -72,7 +72,7 @@ public abstract class AbstractBloomFilterTest<T extends BloomFilter> {
}
/**
* Create an empty version of the BloomFilter implementation we are testing.
* Creates an empty version of the BloomFilter implementation we are testing.
*
* @param shape the shape of the filter.
* @return a BloomFilter implementation.
@ -80,7 +80,7 @@ public abstract class AbstractBloomFilterTest<T extends BloomFilter> {
protected abstract T createEmptyFilter(Shape shape);
/**
* Create the BloomFilter implementation we are testing.
* Creates the BloomFilter implementation we are testing.
*
* @param shape the shape of the filter.
* @param extractor A BitMap extractor to build the filter with.
@ -93,7 +93,7 @@ public abstract class AbstractBloomFilterTest<T extends BloomFilter> {
}
/**
* Create the BloomFilter implementation we are testing.
* Creates the BloomFilter implementation we are testing.
*
* @param shape the shape of the filter.
* @param hasher the hasher to use to create the filter.
@ -106,7 +106,7 @@ public abstract class AbstractBloomFilterTest<T extends BloomFilter> {
}
/**
* Create the BloomFilter implementation we are testing.
* Creates the BloomFilter implementation we are testing.
*
* @param shape the shape of the filter.
* @param extractor An Index extractor to build the filter with.
@ -168,7 +168,7 @@ public abstract class AbstractBloomFilterTest<T extends BloomFilter> {
}
/**
* Test cardinality and isEmpty. Bloom filter must be able to accept multiple
* Tests cardinality and isEmpty. Bloom filter must be able to accept multiple
* IndexExtractor merges until all the bits are populated.
*
* @param bf The Bloom filter to test.
@ -192,6 +192,7 @@ public abstract class AbstractBloomFilterTest<T extends BloomFilter> {
assertFalse(bf.isEmpty(), "Wrong value at " + i);
}
}
@Test
public void testClear() {
final BloomFilter bf1 = createFilter(getTestShape(), TestingHashers.FROM1);