public abstract class AbstractCacheLazyTest extends AbstractCacheTest
AbstractCacheTest.CacheType| Modifier and Type | Field and Description |
|---|---|
protected static com.google.common.base.Function<Cache<String,Integer>,Void> |
REMOVE_0 |
protected static com.google.common.base.Function<Cache<String,Integer>,Void> |
REMOVE_ALL |
factory| Constructor and Description |
|---|
AbstractCacheLazyTest() |
AbstractCacheLazyTest(AbstractCacheTest.CacheType cacheType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
removeConcurrentWithLoader(CacheFactory factory1,
CacheFactory factory2,
com.google.common.base.Function<Cache<String,Integer>,Void> removeFn) |
protected void |
removeConcurrentWithSupplier(CacheFactory factory1,
CacheFactory factory2,
com.google.common.base.Function<Cache<String,Integer>,Void> removeFn) |
void |
testClear() |
void |
testConstructExpiringCache() |
void |
testExceptionHandling() |
void |
testFactoryGeneratedName() |
void |
testGet() |
void |
testGetKeys() |
void |
testGetName() |
void |
testMaxEntries() |
void |
testNewInstanceForEveryGet() |
void |
testNullKey() |
void |
testNullValue() |
void |
testPut() |
void |
testRemove() |
void |
testRemoveAll() |
void |
testRemoveAllConcurrentWithLoaderLocal() |
void |
testRemoveAllConcurrentWithSupplierLocal() |
void |
testRemoveConcurrentWithLoaderLocal() |
void |
testRemoveConcurrentWithSupplierLocal() |
void |
testRemoveTwice() |
assertContainsKeys, assertEmpty, assertEventuallyThat, assertMissingKeys, assertSize, makeExceptionalCache, makeExpiringCache, makeNullReturningCache, makeSimpleCache, makeSimpleCache, makeSizeLimitedCache, makeSizeLimitedCache, makeSlowCache, makeUnexpiringCache, settingsBuilder, settingsBuilder, testWhenRemovingAKeyWhereTheLoaderReturnsNullTheExceptionIsSwallowed, testWhenRemovingAKeyWithValueWhereTheLoaderReturnsNullTheExceptionIsSwallowed, testWhenRemovingAllKeysWhereTheLoaderReturnsNullTheExceptionIsSwallowedprotected static final com.google.common.base.Function<Cache<String,Integer>,Void> REMOVE_0
public AbstractCacheLazyTest()
public AbstractCacheLazyTest(AbstractCacheTest.CacheType cacheType)
public void testConstructExpiringCache()
throws Exception
Exceptionpublic void testNewInstanceForEveryGet()
public void testRemoveConcurrentWithLoaderLocal()
public void testRemoveAllConcurrentWithLoaderLocal()
protected void removeConcurrentWithLoader(CacheFactory factory1, @Nullable CacheFactory factory2, com.google.common.base.Function<Cache<String,Integer>,Void> removeFn)
public void testRemoveConcurrentWithSupplierLocal()
public void testRemoveAllConcurrentWithSupplierLocal()
protected void removeConcurrentWithSupplier(CacheFactory factory1, @Nullable CacheFactory factory2, com.google.common.base.Function<Cache<String,Integer>,Void> removeFn)
Copyright © 2018 Atlassian. All rights reserved.