public class TestBucketCache
extends java.lang.Object
Tests will ensure that blocks' data correctness under several threads concurrency
| Modifier and Type | Field and Description |
|---|---|
int |
constructedBlockSize |
int[] |
constructedBlockSizes |
| Constructor and Description |
|---|
TestBucketCache() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Iterable<java.lang.Object[]> |
data() |
void |
setup() |
void |
tearDown() |
void |
testBucketAllocator() |
void |
testCacheMultiThreadedSingleKey() |
void |
testCacheSimple() |
void |
testHeapSizeChanges() |
void |
testMemoryLeak() |
void |
testOffsetProducesPositiveOutput() |
public int constructedBlockSize
public int[] constructedBlockSizes
public static java.lang.Iterable<java.lang.Object[]> data()
public void setup()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionpublic void tearDown()
public void testBucketAllocator()
throws BucketAllocatorException
BucketAllocatorExceptionpublic void testCacheSimple()
throws java.lang.Exception
java.lang.Exceptionpublic void testCacheMultiThreadedSingleKey()
throws java.lang.Exception
java.lang.Exceptionpublic void testHeapSizeChanges()
throws java.lang.Exception
java.lang.Exceptionpublic void testMemoryLeak()
throws java.lang.Exception
java.lang.Exceptionpublic void testOffsetProducesPositiveOutput()