Class AbstractCacheControllerOneRegionTest
- java.lang.Object
-
- de.hybris.platform.regioncache.test.AbstractCacheControllerOneRegionTest
-
- Direct Known Subclasses:
EHCacheRegionExclusiveComputationTest,OneRegionTestDefaultCacheRegion,OneRegionTestDefaultLRUCacheRegion,OneRegionTestEHCacheRegion
@UnitTest @DirtiesContext(classMode=AFTER_CLASS) public abstract class AbstractCacheControllerOneRegionTest extends java.lang.Object
Needs to be instantiated to provide spring configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected TestCacheKeyFactorycacheKeyFactoryprotected DefaultCacheControllercontrollerprotected static org.apache.log4j.LoggerLOGGERprotected CacheRegionregion
-
Constructor Summary
Constructors Constructor Description AbstractCacheControllerOneRegionTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchoosingRegionTest()Test if: default cache region is chosenvoidclean()static voidcleanEHCache()voidconcurrentValuePutTest()Tests if: cache stores loaded valuesvoidevictionTest()Tests if: cache evicts values [no registry]voidinit()static voidinitialize()voidinvalidateKeyTest()Tests if: invalidation when key inside cache mapvoidinvalidationTest()Tests if: invalidation with no key inside.voidinvalidationTestWithFilter()Tests if: invalidation with no key inside.voidmultitenantCacheRegistryTest()voidstatsTest()voidstatsTypesTest()voidvaluePutTest()
-
-
-
Field Detail
-
controller
protected DefaultCacheController controller
-
region
protected CacheRegion region
-
cacheKeyFactory
protected final TestCacheKeyFactory cacheKeyFactory
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER
-
-
Method Detail
-
initialize
public static void initialize()
-
init
public void init()
-
clean
public void clean()
-
cleanEHCache
public static void cleanEHCache()
-
valuePutTest
public void valuePutTest() throws CacheRegionNotSpecifiedException, CacheValueLoadException
-
concurrentValuePutTest
public void concurrentValuePutTest() throws CacheRegionNotSpecifiedException, CacheValueLoadExceptionTests if: cache stores loaded values
-
choosingRegionTest
public void choosingRegionTest() throws CacheRegionNotSpecifiedExceptionTest if: default cache region is chosen- Throws:
CacheRegionNotSpecifiedException
-
statsTest
public void statsTest()
-
evictionTest
public void evictionTest() throws CacheRegionNotSpecifiedException, CacheValueLoadExceptionTests if: cache evicts values [no registry]
-
invalidationTest
public void invalidationTest() throws CacheRegionNotSpecifiedException, CacheValueLoadExceptionTests if: invalidation with no key inside. No filters defined.
-
invalidationTestWithFilter
public void invalidationTestWithFilter() throws CacheRegionNotSpecifiedException, CacheValueLoadExceptionTests if: invalidation with no key inside. No filters defined.
-
invalidateKeyTest
public void invalidateKeyTest() throws CacheRegionNotSpecifiedException, CacheValueLoadExceptionTests if: invalidation when key inside cache map
-
multitenantCacheRegistryTest
public void multitenantCacheRegistryTest()
-
statsTypesTest
public void statsTypesTest()
-
-