Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » base » algorithm » [javadoc | source]
com.opensymphony.oscache.base.algorithm
public final class: TestFIFOCache [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.TestFIFOCache
Test class for the FIFOCache class. It tests that the algorithm reacts as expected when entries are removed $Id: TestFIFOCache.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 TestFIFOCache(String str) 
    Constructor

    Parameters:
    str - The test name (required by JUnit)
Method from com.opensymphony.oscache.base.algorithm.TestFIFOCache 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.TestFIFOCache 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