com.atlassian.cache
Class AbstractCacheEagerTest

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

public abstract class AbstractCacheEagerTest
extends AbstractCacheTest

Test the Eager Cache

Since:
2.0

Field Summary
 
Fields inherited from class com.atlassian.cache.AbstractCacheTest
factory
 
Constructor Summary
AbstractCacheEagerTest()
           
 
Method Summary
 void conditionalPutDoesNotPutIfPresent()
           
 void conditionalPutPutsIfAbsent()
           
 void removeDoesNothingWhenNoKeyIsPresent()
           
 void removeDoesNotRemoveWhenValueDoesNotMatch()
           
 void removeRemovesWhenValueMatches()
           
 void replaceDoesNothingWhenValueDoesNotMatch()
           
 void replaceDoesNotReplaceIfAbsent()
           
 void replaceReplacesWhenValueMatches()
           
 void testBothExpireHintsSpecified()
           
 void testClear()
           
 void testFactoryGeneratedName()
           
 void testGet()
           
 void testGetKeys()
           
 void testGetName()
           
 void testGetWithSupplier()
           
 void testMaxEntries()
           
 void testPut()
           
 void testRemove()
           
 void testRemoveAll()
           
 void testRemoveTwice()
           
 
Methods inherited from class com.atlassian.cache.AbstractCacheTest
assertEmpty, assertSize, makeCacheUsingLoader, makeExceptionalCache, makeExpiringCache, makeNullReturningCache, makeSimpleCache, makeSizeLimitedCache, makeSizeLimitedCache, makeUnexpiringCache, settingsBuilder, testRemoveFromCacheWhileLoadingCacheValueReturnsLatestValue, testRemoveSpecificValueFromCacheWhileLoadingCacheValueReturnsLatestValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCacheEagerTest

public AbstractCacheEagerTest()
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

testPut

public void testPut()
             throws Exception
Throws:
Exception

testGet

public void testGet()
             throws Exception
Throws:
Exception

testGetWithSupplier

public void testGetWithSupplier()
                         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

conditionalPutPutsIfAbsent

public void conditionalPutPutsIfAbsent()

conditionalPutDoesNotPutIfPresent

public void conditionalPutDoesNotPutIfPresent()

replaceDoesNotReplaceIfAbsent

public void replaceDoesNotReplaceIfAbsent()

replaceReplacesWhenValueMatches

public void replaceReplacesWhenValueMatches()

replaceDoesNothingWhenValueDoesNotMatch

public void replaceDoesNothingWhenValueDoesNotMatch()

removeDoesNothingWhenNoKeyIsPresent

public void removeDoesNothingWhenNoKeyIsPresent()

removeRemovesWhenValueMatches

public void removeRemovesWhenValueMatches()

removeDoesNotRemoveWhenValueDoesNotMatch

public void removeDoesNotRemoveWhenValueDoesNotMatch()

testMaxEntries

public void testMaxEntries()
                    throws Exception
Throws:
Exception

testBothExpireHintsSpecified

public void testBothExpireHintsSpecified()


Copyright © 2015 Atlassian. All rights reserved.