com.atlassian.cache
Class AbstractLazyReferenceTest

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

public abstract class AbstractLazyReferenceTest
extends AbstractCacheTest

Test the Lazy Reference

Since:
2.0

Field Summary
 
Fields inherited from class com.atlassian.cache.AbstractCacheTest
factory
 
Constructor Summary
AbstractLazyReferenceTest()
           
 
Method Summary
protected  CachedReference<Long> makeReference()
           
protected  CacheSettingsBuilder settingsBuilder()
           
 void testClear()
           
 void testExceptionHandling()
           
 void testFactoryGeneratedName()
           
 void testGet()
           
 void testGetName()
           
 void testNewInstanceForEveryGet()
           
 void testNullHandling()
           
 void testRemoveTwice()
           
 void testReset()
           
 
Methods inherited from class com.atlassian.cache.AbstractCacheTest
assertEmpty, assertSize, makeCacheUsingLoader, makeExceptionalCache, makeExpiringCache, makeNullReturningCache, makeSimpleCache, makeSizeLimitedCache, makeSizeLimitedCache, makeUnexpiringCache, testRemoveFromCacheWhileLoadingCacheValueReturnsLatestValue, testRemoveSpecificValueFromCacheWhileLoadingCacheValueReturnsLatestValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLazyReferenceTest

public AbstractLazyReferenceTest()
Method Detail

testGetName

public void testGetName()
                 throws Exception
Throws:
Exception

testFactoryGeneratedName

public void testFactoryGeneratedName()
                              throws Exception
Throws:
Exception

testGet

public void testGet()
             throws Exception
Throws:
Exception

testReset

public void testReset()
               throws Exception
Throws:
Exception

testRemoveTwice

public void testRemoveTwice()
                     throws Exception
Throws:
Exception

testClear

public void testClear()
               throws Exception
Throws:
Exception

testNullHandling

public void testNullHandling()
                      throws Exception
Throws:
Exception

testExceptionHandling

public void testExceptionHandling()
                           throws Exception
Throws:
Exception

testNewInstanceForEveryGet

public void testNewInstanceForEveryGet()

makeReference

protected CachedReference<Long> makeReference()

settingsBuilder

protected CacheSettingsBuilder settingsBuilder()
Overrides:
settingsBuilder in class AbstractCacheTest


Copyright © 2015 Atlassian. All rights reserved.