com.atlassian.cache
Class AbstractCacheTest
java.lang.Object
com.atlassian.cache.AbstractCacheTest
- Direct Known Subclasses:
- AbstractCacheEagerTest, AbstractCacheLazyTest
public class AbstractCacheTest
- extends Object
|
Method Summary |
protected static
|
assertEmpty(Cache<K,V> cache)
|
protected static
|
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 |
factory
protected CacheFactory factory
AbstractCacheTest
public AbstractCacheTest()
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.