Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » base » algorithm » [javadoc | source]
com.opensymphony.oscache.base.algorithm
abstract public class: TestQueueCache [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      com.opensymphony.oscache.base.algorithm.TestAbstractCache
         com.opensymphony.oscache.base.algorithm.TestQueueCache

Direct Known Subclasses:
    TestLRUCache, TestFIFOCache, TestUnlimitedCache

Test class for the QueueCache class, which is the base class for FIFO and LIFO algorithm classes. All the public methods of QueueCache are tested here. $Id: TestQueueCache.java,v 1.1 2005/06/17 05:07:07 dres Exp $
Field Summary
protected final  String CONTENT    Entry content 
protected final  String KEY    Entry key 
Fields inherited from com.opensymphony.oscache.base.algorithm.TestAbstractCache:
INVALID_MAX_ENTRIES,  MAX_ENTRIES
Constructor:
 public TestQueueCache(String str) 
    Constructor

    Parameters:
    str - The test name (required by JUnit)
Method from com.opensymphony.oscache.base.algorithm.TestQueueCache Summary:
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.TestQueueCache Detail:
 public  void testClear() 
    Test the clear
 public  void testContainsKey() 
    Test the ContainsKey method
 public  void testGet() 
    Test the get method
 public  void testGetSetMaxEntries() 
    Test the getter and setter for the max entries
 public  void testIterator() 
    Test the iterator
 public  void testPut() 
    Test the put method
 public  void testPutOverflow() 
    Test the put method with overflow parameter set
 public  void testRemove() 
    Test the remove from cache
 abstract public  void testRemoveItem()
    Test the specific algorithms