Package de.hybris.platform.test
Class LazyLoadItemListUnitTest
- java.lang.Object
-
- de.hybris.platform.test.LazyLoadItemListUnitTest
-
@PerformanceTest public class LazyLoadItemListUnitTest extends java.lang.Object
Unit test for checking thread safety of read operation forLazyLoadItemList.
-
-
Constructor Summary
Constructors Constructor Description LazyLoadItemListUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestConcurrentAccess()The idea is to access aLazyLoadItemListwith multiple threads each one hitting a different page.voidtestSynchronousAccess()
-
-
-
Method Detail
-
testConcurrentAccess
public void testConcurrentAccess()
The idea is to access aLazyLoadItemListwith 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()
-
-