|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jcs.auxiliary.disk.indexed.IndexDiskCacheUnitTest
public class IndexDiskCacheUnitTest
Tests for common functionality.
| Constructor Summary | |
|---|---|
IndexDiskCacheUnitTest()
|
|
| Method Summary | |
|---|---|
void |
testBytesFreeSize()
Verify that the data size is as expected after a remove and after a put that should use the spots. |
void |
testCheckForDedOverlaps_noOverlap()
Verify that the overlap check returns true when there are no overlaps. |
void |
testCheckForDedOverlaps_overlaps()
Verify that the overlap check returns false when there are overlaps. |
void |
testFileSize()
Verify that the file size is as expected. |
void |
testGet_EventLogging_simple()
Verify event log calls. |
void |
testGetMultiple_EventLogging_simple()
Verify event log calls. |
void |
testProcessUpdate_SameKeyBiggerSize()
Verify that the old slot gets in the recycle bin. |
void |
testProcessUpdate_SameKeySameSize()
Verify the item makes it to disk. |
void |
testProcessUpdate_SameKeySmallerSize()
Verify the item makes it to disk. |
void |
testProcessUpdate_Simple()
Verify the item makes it to disk. |
void |
testPutGetMatching_NoWait()
Test the basic get matching. |
void |
testPutGetMatching_SmallWait()
Test the basic get matching. |
void |
testRecycleBin()
Verify that we don't override the largest item. |
void |
testRecyleBinSize()
Verify that items are added to the recycle bin on removal. |
void |
testRecyleBinUsage()
Verify that items of the same size use recycle bin spots. |
void |
testRemove_EventLogging_simple()
Verify event log calls. |
void |
testRemove_Group()
Verify that group members are removed if we call remove with a group. |
void |
testRemove_PartialKey()
Add some items to the disk cache and then remove them one by one. |
void |
testRemoveAll_EventLogging_simple()
Verify event log calls. |
void |
testRemoveItems()
Add some items to the disk cache and then remove them one by one. |
void |
testSimplePutAndGet()
Simply verify that we can put items in the disk cache and retrieve them. |
void |
testUpdate_EventLogging_simple()
Verify event log calls. |
void |
testUTF8ByteArray()
Verify that the block disk cache can handle utf encoded strings. |
void |
testUTF8String()
Verify that the block disk cache can handle utf encoded strings. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IndexDiskCacheUnitTest()
| Method Detail |
|---|
public void testSimplePutAndGet()
throws IOException
IOException
public void testRemoveItems()
throws IOException
IOException
public void testRecycleBin()
throws IOException
IOExceptionpublic void testCheckForDedOverlaps_noOverlap()
public void testCheckForDedOverlaps_overlaps()
public void testFileSize()
throws IOException,
InterruptedException
IOException
InterruptedException
public void testRecyleBinSize()
throws IOException,
InterruptedException
IOException
InterruptedException
public void testRecyleBinUsage()
throws IOException,
InterruptedException
IOException
InterruptedException
public void testBytesFreeSize()
throws IOException,
InterruptedException
IOException
InterruptedException
public void testRemove_PartialKey()
throws IOException
IOException
public void testRemove_Group()
throws IOException
IOException
public void testUpdate_EventLogging_simple()
throws Exception
Exception
public void testGet_EventLogging_simple()
throws Exception
Exception
public void testGetMultiple_EventLogging_simple()
throws Exception
Exception
public void testRemove_EventLogging_simple()
throws Exception
Exception
public void testRemoveAll_EventLogging_simple()
throws Exception
Exception
public void testPutGetMatching_SmallWait()
throws Exception
Exception
public void testPutGetMatching_NoWait()
throws Exception
Exception
public void testUTF8String()
throws Exception
Exception
public void testUTF8ByteArray()
throws Exception
Exception
public void testProcessUpdate_Simple()
throws IOException
IOException
public void testProcessUpdate_SameKeySameSize()
throws IOException
IOException
public void testProcessUpdate_SameKeySmallerSize()
throws IOException
IOException
public void testProcessUpdate_SameKeyBiggerSize()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||