com.atlassian.cache
Class AbstractCacheTest

java.lang.Object
  extended by com.atlassian.cache.AbstractCacheTest
Direct Known Subclasses:
AbstractCacheEagerTest, AbstractCacheLazyTest

public class AbstractCacheTest
extends Object


Field Summary
protected  CacheFactory factory
           
 
Constructor Summary
AbstractCacheTest()
           
 
Method Summary
protected static
<K,V> void
assertEmpty(Cache<K,V> cache)
           
protected static
<K,V> void
assertSize(Cache<K,V> cache, int expectedSize)
           
protected  Cache<String,Long> makeExceptionalCache()
           
protected  Cache<String,Long> makeExpiringCache()
           
protected  Cache<String,Long> makeNullReturningCache()
           
protected  Cache<String,Long> makeSimpleCache()
           
protected  Cache<String,Long> makeSizeLimitedCache(int maxEntries)
           
protected  Cache<String,Long> makeSizeLimitedCache(int maxEntries, AtomicInteger loadCounter)
           
protected  Cache<String,Long> makeUnexpiringCache()
           
protected  CacheSettingsBuilder settingsBuilder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected CacheFactory factory
Constructor Detail

AbstractCacheTest

public AbstractCacheTest()
Method Detail

makeExceptionalCache

protected Cache<String,Long> makeExceptionalCache()

makeExpiringCache

protected Cache<String,Long> makeExpiringCache()

makeNullReturningCache

protected Cache<String,Long> makeNullReturningCache()

makeSimpleCache

protected Cache<String,Long> makeSimpleCache()

makeSizeLimitedCache

protected Cache<String,Long> makeSizeLimitedCache(int maxEntries)

makeSizeLimitedCache

protected Cache<String,Long> makeSizeLimitedCache(int maxEntries,
                                                  AtomicInteger loadCounter)

makeUnexpiringCache

protected Cache<String,Long> makeUnexpiringCache()

settingsBuilder

protected CacheSettingsBuilder settingsBuilder()

assertEmpty

protected static <K,V> void assertEmpty(Cache<K,V> cache)

assertSize

protected static <K,V> void assertSize(Cache<K,V> cache,
                                       int expectedSize)


Copyright © 2014 Atlassian. All rights reserved.