org.hackystat.utilities.uricache
Class TestUriCache

java.lang.Object
  extended by org.hackystat.utilities.uricache.TestUriCache

public class TestUriCache
extends java.lang.Object

Tests the UriCache class.

Author:
Philip Johnson

Constructor Summary
TestUriCache()
           
 
Method Summary
 void testDiskCache()
          Test use of disk cache.
 void testDisposeCache()
          Test simple cache put and get.
 void testElementExpiration()
          Test that we can expire elements from the cache.
 void testGroupedElementsCache()
          Tests addition and deletion of grouped cache entries.
 void testHierarchicalKeyCacheRemoval()
          Tests addition and deletion of hierarchical cache entries.
 void testSimpleCache()
          Test simple cache put and get.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUriCache

public TestUriCache()
Method Detail

testSimpleCache

public void testSimpleCache()
Test simple cache put and get.


testHierarchicalKeyCacheRemoval

public void testHierarchicalKeyCacheRemoval()
Tests addition and deletion of hierarchical cache entries. The idea is that if you use keys with the ":" to separate parts, you can delete collections of cache elements with one call by specifying the colon delimited hierarchy. See http://jakarta.apache.org/jcs/faq.html#hierarchical-removal for details. Unfortunately this does not work.


testGroupedElementsCache

public void testGroupedElementsCache()
Tests addition and deletion of grouped cache entries.


testDisposeCache

public void testDisposeCache()
Test simple cache put and get.


testDiskCache

public void testDiskCache()
Test use of disk cache.


testElementExpiration

public void testElementExpiration()
                           throws java.lang.Exception
Test that we can expire elements from the cache. This test no longer works because we've changed the

Throws:
java.lang.Exception - If problems occur.