com.atlassian.cache
Class AbstractCacheLazyTest

java.lang.Object
  extended by com.atlassian.cache.AbstractCacheTest
      extended by com.atlassian.cache.AbstractCacheLazyTest

public abstract class AbstractCacheLazyTest
extends AbstractCacheTest

Test the Lazy Cache

Since:
2.0

Field Summary
protected static com.google.common.base.Function<Cache<Integer,Integer>,Void> REMOVE_0
           
protected static com.google.common.base.Function<Cache<Integer,Integer>,Void> REMOVE_ALL
           
 
Fields inherited from class com.atlassian.cache.AbstractCacheTest
factory
 
Constructor Summary
AbstractCacheLazyTest()
           
 
Method Summary
protected  void removeConcurrentWithLoad(CacheFactory factory1, CacheFactory factory2, com.google.common.base.Function<Cache<Integer,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 testRemoveAllConcurrentWithLoadLocal()
           
 void testRemoveConcurrentWithLoadLocal()
           
 void testRemoveTwice()
           
 
Methods inherited from class com.atlassian.cache.AbstractCacheTest
assertEmpty, assertSize, makeExceptionalCache, makeExpiringCache, makeNullReturningCache, makeSimpleCache, makeSizeLimitedCache, makeSizeLimitedCache, makeUnexpiringCache, settingsBuilder, testWhenRemovingAKeyWhereTheLoaderReturnsNullTheExceptionIsSwallowed, testWhenRemovingAKeyWithValueWhereTheLoaderReturnsNullTheExceptionIsSwallowed, testWhenRemovingAllKeysWhereTheLoaderReturnsNullTheExceptionIsSwallowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOVE_0

protected static final com.google.common.base.Function<Cache<Integer,Integer>,Void> REMOVE_0

REMOVE_ALL

protected static final com.google.common.base.Function<Cache<Integer,Integer>,Void> REMOVE_ALL
Constructor Detail

AbstractCacheLazyTest

public AbstractCacheLazyTest()
Method Detail

testGetName

public void testGetName()
                 throws Exception
Throws:
Exception

testFactoryGeneratedName

public void testFactoryGeneratedName()
                              throws Exception
Throws:
Exception

testGetKeys

public void testGetKeys()
                 throws Exception
Throws:
Exception

testConstructExpiringCache

public void testConstructExpiringCache()
                                throws Exception
Throws:
Exception

testPut

public void testPut()
             throws Exception
Throws:
Exception

testGet

public void testGet()
             throws Exception
Throws:
Exception

testRemove

public void testRemove()
                throws Exception
Throws:
Exception

testRemoveTwice

public void testRemoveTwice()
                     throws Exception
Throws:
Exception

testRemoveAll

public void testRemoveAll()
                   throws Exception
Throws:
Exception

testClear

public void testClear()
               throws Exception
Throws:
Exception

testNullKey

public void testNullKey()
                 throws Exception
Throws:
Exception

testNullValue

public void testNullValue()
                   throws Exception
Throws:
Exception

testMaxEntries

public void testMaxEntries()
                    throws Exception
Throws:
Exception

testExceptionHandling

public void testExceptionHandling()
                           throws Exception
Throws:
Exception

testNewInstanceForEveryGet

public void testNewInstanceForEveryGet()

testRemoveConcurrentWithLoadLocal

public void testRemoveConcurrentWithLoadLocal()

testRemoveAllConcurrentWithLoadLocal

public void testRemoveAllConcurrentWithLoadLocal()

removeConcurrentWithLoad

protected void removeConcurrentWithLoad(CacheFactory factory1,
                                        @Nullable
                                        CacheFactory factory2,
                                        com.google.common.base.Function<Cache<Integer,Integer>,Void> removeFn)


Copyright © 2015 Atlassian. All rights reserved.