net.sourceforge.rcache
Class SoftCacheTest

java.lang.Object
  extended by net.sourceforge.rcache.BaseCacheTest
      extended by net.sourceforge.rcache.SoftCacheTest

public class SoftCacheTest
extends BaseCacheTest

TestCase for SoftCache.

Author:
Rodrigo Ruiz

Constructor Summary
SoftCacheTest()
           
 
Method Summary
protected  BaseCache<java.lang.Integer,java.lang.Object> createCache()
          Creates a cache instance.
protected  BaseCache<java.lang.Integer,java.lang.Object> createCache(int capacity)
          Creates a cache instance.
protected  BaseCache<java.lang.Integer,java.lang.Object> createCache(int capacity, float factor)
          Creates a cache instance.
protected  BaseCache<java.lang.Integer,java.lang.Object> createCache(int capacity, float factor, int level)
          Creates a cache instance.
 
Methods inherited from class net.sourceforge.rcache.BaseCacheTest
check, check, forcePurge, testGet, testObjectMethods, testProfiler, testPurge, testRemove, testRemoveAndPut, testUnsupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftCacheTest

public SoftCacheTest()
Method Detail

createCache

protected final BaseCache<java.lang.Integer,java.lang.Object> createCache()
Creates a cache instance.

Specified by:
createCache in class BaseCacheTest
Returns:
A Cache instance

createCache

protected final BaseCache<java.lang.Integer,java.lang.Object> createCache(int capacity)
Creates a cache instance.

Specified by:
createCache in class BaseCacheTest
Parameters:
capacity - Initial capacity
Returns:
A Cache instance

createCache

protected final BaseCache<java.lang.Integer,java.lang.Object> createCache(int capacity,
                                                                          float factor)
Creates a cache instance.

Specified by:
createCache in class BaseCacheTest
Parameters:
capacity - Initial capacity
factor - Load factor
Returns:
A Cache instance

createCache

protected final BaseCache<java.lang.Integer,java.lang.Object> createCache(int capacity,
                                                                          float factor,
                                                                          int level)
Creates a cache instance.

Specified by:
createCache in class BaseCacheTest
Parameters:
capacity - Initial capacity
factor - Load factor
level - Concurrency level
Returns:
A Cache instance


© 2007-2009 Rodrigo Ruiz
This site is hosted by