Package de.hybris.platform.test
Class LazyLoadItemListUnitTest
java.lang.Object
de.hybris.platform.test.LazyLoadItemListUnitTest
Unit test for checking thread safety of read operation for
LazyLoadItemList.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe idea is to access aLazyLoadItemListwith multiple threads each one hitting a different page.void
-
Constructor Details
-
LazyLoadItemListUnitTest
public LazyLoadItemListUnitTest()
-
-
Method Details
-
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()
-