Save This Page
Home » oscache-2.4.1-full » com.opensymphony.oscache » base » algorithm » [javadoc | source]
com.opensymphony.oscache.base.algorithm
public final class: TestUnlimitedCache [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.TestUnlimitedCache
Test class for the Unlimited cache algorithm. Most of the tests are done in the TestNonQueueCache class, so only algorithm specific tests are done here. Since this is an unlimited cache, there's not much to test about the algorithm. $Id: TestUnlimitedCache.java,v 1.2 2006/06/15 16:27:17 ltorunski 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 TestUnlimitedCache(String str) 
    Constructor

    Parameters:
    str - The test name (required by JUnit)
Method from com.opensymphony.oscache.base.algorithm.TestUnlimitedCache Summary:
getCache,   setUp,   suite,   testGetSetMaxEntries,   testGroups,   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.TestUnlimitedCache 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 testGetSetMaxEntries() 
    Test the getter and setter for the max entries. It overrides the TestQueueCache one since it shouldn't have any effect in unlimited cache
 public  void testGroups() 
    Test that groups are correctly updated on puts and removes
 public  void testRemoveItem() 
    Test the cache algorithm