Class DefaultTestRegionResolverTest
- java.lang.Object
-
- de.hybris.platform.regioncache.test.DefaultTestRegionResolverTest
-
@UnitTest public class DefaultTestRegionResolverTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultTestRegionResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DefaultCacheRegionResolvercreateDefaultCacheRegionResolver(java.util.List<CacheRegion> regions)voidtestMultipleAllTypesRegions()voidtestRegionsMixed()One region can handle both specific types and "all other types" via use of CacheController.ALL_TYPES_REGION_TYPE type.voidtestSingleRegionForAllTypeCodes()When there's a single region with type=CacheController.ALL_TYPES_REGION_TYPE, it should be selected for any key even when no region name is provided.voidtestSingleRegionForSpecificTypeCodes()When there is more than one region, but a type is mapped only to one region, the region should be selected for a key of the type even when no region name is provided.
-
-
-
Method Detail
-
createDefaultCacheRegionResolver
protected DefaultCacheRegionResolver createDefaultCacheRegionResolver(java.util.List<CacheRegion> regions)
-
testSingleRegionForAllTypeCodes
public void testSingleRegionForAllTypeCodes()
When there's a single region with type=CacheController.ALL_TYPES_REGION_TYPE, it should be selected for any key even when no region name is provided.
-
testSingleRegionForSpecificTypeCodes
public void testSingleRegionForSpecificTypeCodes()
When there is more than one region, but a type is mapped only to one region, the region should be selected for a key of the type even when no region name is provided.
-
testRegionsMixed
public void testRegionsMixed()
One region can handle both specific types and "all other types" via use of CacheController.ALL_TYPES_REGION_TYPE type. This test method verifies if the dispatching works in that case.
-
testMultipleAllTypesRegions
public void testMultipleAllTypesRegions()
-
-