Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » base » algorithm » [javadoc | source]
com.opensymphony.oscache.base.algorithm
public final class: TestLRUCache [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      com.opensymphony.oscache.base.algorithm.TestAbstractCache
         com.opensymphony.oscache.base.algorithm.TestQueueCache
            com.opensymphony.oscache.base.algorithm.TestLRUCache
Test class for the LRUCache class. It only tests that the algorithm reacts as expected when entries are removed. All the other tests related to the LRU algorithm are in the TestNonQueueCache class, since those tests are shared with the TestUnlimitedCache class. $Id: TestLRUCache.java,v 1.1 2005/06/17 05:07:08 dres Exp $
Fields inherited from com.opensymphony.oscache.base.algorithm.TestQueueCache:
CONTENT,  KEY
Fields inherited from com.opensymphony.oscache.base.algorithm.TestAbstractCache:
INVALID_MAX_ENTRIES,  MAX_ENTRIES
Constructor:
 public TestLRUCache(String str) 
    Constructor

    Parameters:
    str - The test name (required by JUnit)
Method from com.opensymphony.oscache.base.algorithm.TestLRUCache Summary:
getCache,   setUp,   suite,   testRemoveItem
Methods from com.opensymphony.oscache.base.algorithm.TestQueueCache:
testClear,   testContainsKey,   testGet,   testGetSetMaxEntries,   testIterator,   testPut,   testPutOverflow,   testRemove,   testRemoveItem
Methods from com.opensymphony.oscache.base.algorithm.TestAbstractCache:
getCache,   testContainsKey,   testGet,   testGetSetMaxEntries,   testGetSetMemoryCache,   testGroups,   testIterator,   testPut,   testRemove,   testRemoveItem,   testSetPersistenceListener
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.oscache.base.algorithm.TestLRUCache Detail:
 public AbstractConcurrentReadCache getCache() 
    Abstract method used by the TestAbstractCache class

 public  void setUp() 
    This method is invoked before each testXXXX methods of the class. It set ups the variables required for each tests.
 public static Test suite() 
    This methods returns the name of this test class to JUnit

 public  void testRemoveItem() 
    Test the cache algorithm