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 TestCacheKeyFactory
cacheKeyFactory
protected DefaultCacheController
controller
protected static org.apache.log4j.Logger
LOGGER
protected CacheRegion
region
-
Constructor Summary
Constructors Constructor Description AbstractCacheControllerOneRegionTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
choosingRegionTest()
Test if: default cache region is chosenvoid
clean()
static void
cleanEHCache()
void
concurrentValuePutTest()
Tests if: cache stores loaded valuesvoid
evictionTest()
Tests if: cache evicts values [no registry]void
init()
static void
initialize()
void
invalidateKeyTest()
Tests if: invalidation when key inside cache mapvoid
invalidationTest()
Tests if: invalidation with no key inside.void
invalidationTestWithFilter()
Tests if: invalidation with no key inside.void
multitenantCacheRegistryTest()
void
statsTest()
void
statsTypesTest()
void
valuePutTest()
-
-
-
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, CacheValueLoadException
Tests if: cache stores loaded values
-
choosingRegionTest
public void choosingRegionTest() throws CacheRegionNotSpecifiedException
Test if: default cache region is chosen- Throws:
CacheRegionNotSpecifiedException
-
statsTest
public void statsTest()
-
evictionTest
public void evictionTest() throws CacheRegionNotSpecifiedException, CacheValueLoadException
Tests if: cache evicts values [no registry]
-
invalidationTest
public void invalidationTest() throws CacheRegionNotSpecifiedException, CacheValueLoadException
Tests if: invalidation with no key inside. No filters defined.
-
invalidationTestWithFilter
public void invalidationTestWithFilter() throws CacheRegionNotSpecifiedException, CacheValueLoadException
Tests if: invalidation with no key inside. No filters defined.
-
invalidateKeyTest
public void invalidateKeyTest() throws CacheRegionNotSpecifiedException, CacheValueLoadException
Tests if: invalidation when key inside cache map
-
multitenantCacheRegistryTest
public void multitenantCacheRegistryTest()
-
statsTypesTest
public void statsTypesTest()
-
-