Class DefaultTestRegionResolverTest
java.lang.Object
de.hybris.platform.regioncache.test.DefaultTestRegionResolverTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultCacheRegionResolvercreateDefaultCacheRegionResolver(List<CacheRegion> regions) voidvoidOne region can handle both specific types and "all other types" via use of CacheController.ALL_TYPES_REGION_TYPE type.voidWhen 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.voidWhen 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.
-
Constructor Details
-
DefaultTestRegionResolverTest
public DefaultTestRegionResolverTest()
-
-
Method Details
-
createDefaultCacheRegionResolver
-
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()
-