Class DefaultTestRegionResolverTest

java.lang.Object
de.hybris.platform.regioncache.test.DefaultTestRegionResolverTest

@UnitTest public class DefaultTestRegionResolverTest extends Object
  • Constructor Details

    • DefaultTestRegionResolverTest

      public DefaultTestRegionResolverTest()
  • Method Details

    • createDefaultCacheRegionResolver

      protected DefaultCacheRegionResolver createDefaultCacheRegionResolver(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()