Class LazyLoadItemListUnitTest

java.lang.Object
de.hybris.platform.test.LazyLoadItemListUnitTest

@PerformanceTest public class LazyLoadItemListUnitTest extends Object
Unit test for checking thread safety of read operation for LazyLoadItemList.
  • Constructor Details

    • LazyLoadItemListUnitTest

      public LazyLoadItemListUnitTest()
  • Method Details

    • testConcurrentAccess

      public void testConcurrentAccess()
      The idea is to access a LazyLoadItemList with multiple threads each one hitting a different page. This is considered the worst case scenario simply because each time a different page is requested the internal page buffer needs to be re-calculated. Please also note that we replaces the actual Item loading logic by one that is just wrapping underlying PKs into Longs.
    • testSynchronousAccess

      public void testSynchronousAccess()