public class TestBucketWriterThread
extends java.lang.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 java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testNonErrorCase()
throws java.io.IOException,
java.lang.InterruptedException
java.io.FileNotFoundExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionpublic void testTooBigEntry()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testIOE()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void testCacheFullException()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedException