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 Object
Needs to be instantiated to provide spring configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TestCacheKeyFactoryprotected DefaultCacheControllerprotected static final org.apache.log4j.Loggerprotected CacheRegion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest if: default cache region is chosenvoidclean()static voidvoidTests if: cache stores loaded valuesvoidTests if: cache evicts values [no registry]voidinit()static voidvoidTests if: invalidation when key inside cache mapvoidTests if: invalidation with no key inside.voidTests if: invalidation with no key inside.voidvoidvoidvoid
-
Field Details
-
controller
-
region
-
cacheKeyFactory
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER
-
-
Constructor Details
-
AbstractCacheControllerOneRegionTest
public AbstractCacheControllerOneRegionTest()
-
-
Method Details
-
initialize
public static void initialize() -
init
public void init() -
clean
public void clean() -
cleanEHCache
public static void cleanEHCache() -
valuePutTest
-
concurrentValuePutTest
public void concurrentValuePutTest() throws CacheRegionNotSpecifiedException, CacheValueLoadExceptionTests if: cache stores loaded values -
choosingRegionTest
Test if: default cache region is chosen- Throws:
CacheRegionNotSpecifiedException
-
statsTest
public void statsTest() -
evictionTest
Tests if: cache evicts values [no registry] -
invalidationTest
Tests 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
Tests if: invalidation when key inside cache map -
multitenantCacheRegistryTest
public void multitenantCacheRegistryTest() -
statsTypesTest
public void statsTypesTest()
-