| |
|
| com.opensymphony.oscache.base.algorithm.TestAbstractCache
All known Subclasses: com.opensymphony.oscache.base.algorithm.TestQueueCache,
TestAbstractCache | abstract public class TestAbstractCache extends TestCase (Code) | | Test class for the AbstractCache class. It tests all public methods of
the AbstractCache and assert the results. It is design to run under JUnit.
$Id: TestAbstractCache.java 425 2007-03-18 09:45:03Z larst $
version: $Revision: 425 $ author: Alain Bergevin |
INVALID_MAX_ENTRIES | final protected int INVALID_MAX_ENTRIES(Code) | | Invalid cache capacity
|
MAX_ENTRIES | final protected int MAX_ENTRIES(Code) | | Cache capacity
|
TestAbstractCache | protected TestAbstractCache(String str)(Code) | | Constructor
Parameters: str - The test name (required by JUnit) |
testContainsKey | abstract public void testContainsKey()(Code) | | Test the method that verify if the cache contains a specific key
|
testGet | abstract public void testGet()(Code) | | Test the get from the cache
|
testGetSetMaxEntries | public void testGetSetMaxEntries()(Code) | | Test the capacity setting
|
testGetSetMemoryCache | public void testGetSetMemoryCache()(Code) | | Test the setting of the memory cache
|
testGroups | public void testGroups()(Code) | | Test that groups are correctly updated on puts and removes
See CACHE-188 and maybe CACHE-244
|
testIterator | abstract public void testIterator()(Code) | | Test the iterator retrieval
|
testMisc | public void testMisc()(Code) | | |
testPut | abstract public void testPut()(Code) | | Test the put into the cache
|
testRemove | abstract public void testRemove()(Code) | | Test the remove from the cache
|
testRemoveItem | abstract public void testRemoveItem()(Code) | | Test the specific details about the cache algorithm
|
testSetPersistenceListener | public void testSetPersistenceListener()(Code) | | Test the PersistenceListener setter. Since the persistance listener is
an interface, just call the setter with null
|
|
|
|