public class TestBucketWriterThread extends Object
| Constructor and Description |
|---|
TestBucketWriterThread() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Set up variables and get BucketCache and WriterThread into state where tests can manually
control the running of WriterThread and BucketCache is empty.
|
void |
tearDown() |
void |
testCacheFullException()
Do Cache full exception
|
void |
testIOE()
Do IOE.
|
void |
testNonErrorCase()
Test non-error case just works.
|
void |
testTooBigEntry()
Pass through a too big entry and ensure it is cleared from queues and ramCache.
|
public void setUp()
throws Exception
Exceptionpublic void testNonErrorCase()
throws IOException,
InterruptedException
public void testTooBigEntry()
throws InterruptedException
InterruptedExceptionpublic void testIOE()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testCacheFullException()
throws IOException,
InterruptedException
IOExceptionInterruptedException