|
||||||||||
| 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.engine.control.CompositeCacheDiskUsageUnitTest
public class CompositeCacheDiskUsageUnitTest
Tests of the disk usage settings for the CompositeCache.
| Nested Class Summary | |
|---|---|
static class |
CompositeCacheDiskUsageUnitTest.MockAuxCache<K extends Serializable,V extends Serializable>
Used to test the disk cache functionality. |
| Constructor Summary | |
|---|---|
CompositeCacheDiskUsageUnitTest()
|
|
| Method Summary | |
|---|---|
void |
setUp()
Test setup |
void |
testSpoolAllowed()
Setup a disk cache. |
void |
testSpoolNotAllowed()
Setup a disk cache. |
void |
testSwapConfig()
Verify that the swap region is set to the correct pattern. |
void |
testUpdateAllowed_localFalse()
Setup a disk cache. |
void |
testUpdateAllowed_withOtherCaches()
Setup a disk cache. |
void |
testUpdateAllowed()
Setup a disk cache. |
void |
testUpdateConfig()
Verify that the swap region is set to the correct pattern. |
void |
testUpdateNotAllowed()
Setup a disk cache. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 CompositeCacheDiskUsageUnitTest()
| Method Detail |
|---|
public void setUp()
setUp in class junit.framework.TestCase
public void testSwapConfig()
throws CacheException
CacheException
public void testUpdateConfig()
throws CacheException
CacheExceptionpublic void testSpoolAllowed()
public void testSpoolNotAllowed()
public void testUpdateAllowed()
throws IOException
This tests that the items are put to disk on a normal put when the usage pattern is set appropriately.
IOException
public void testUpdateAllowed_localFalse()
throws IOException
This tests that the items are put to disk on a normal put when the usage pattern is set appropriately. The local setting should have no impact on whether the item goes to disk.
IOException
public void testUpdateNotAllowed()
throws IOException
This tests that the items are not put to disk on a normal put when the usage pattern is set to SWAP.
IOException
public void testUpdateAllowed_withOtherCaches()
throws IOException
This tests that the items are put to disk on a normal put when the usage pattern is set appropriately.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||