Class ImpExEmptyUpdateTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.impex.ImpExEmptyUpdateTest
- All Implemented Interfaces:
JaloSessionHolder
ECP-595
-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longchangeInOtherThread(PK itemPK, String property, Object value) protected CountryModelcreateModel(String suffixName) protected TitleModelcreateTitleModel(String suffixName) protected voidprotected voidprotected voidsimulateConcurrentUpdateMustFail(ItemModel model, ExtensibleItem jaloItem, boolean mustFailImmediately) protected voidsimulateConcurrentUpdateToSameValueMustFail(CountryModel model, Country jaloItem, boolean mustFailImmediately) protected voidsimulateConcurrentUpdateToSameValueMustNotFail(ItemModel model, ExtensibleItem jaloItem) protected voidsimulateJaloWritesGetTrackedCorrectly(ItemModel model, ExtensibleItem jaloItem) protected voidtestEmptyUpdateImpl(boolean legacyMode, int threads) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidprotected voidwithOptimisticLockingDisabledForType(Runnable r, String typeToSet) Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
ImpExEmptyUpdateTest
public ImpExEmptyUpdateTest()
-
-
Method Details
-
testEmptyUpdateMultiThreadedServiceLayer
public void testEmptyUpdateMultiThreadedServiceLayer() -
testEmptyUpdateMultiThreadedJalo
public void testEmptyUpdateMultiThreadedJalo() -
testEmptyUpdateSingleThreadedServiceLayer
public void testEmptyUpdateSingleThreadedServiceLayer() -
testEmptyUpdateSingleThreadedJalo
public void testEmptyUpdateSingleThreadedJalo() -
testOptimisticLockingStillWorks
public void testOptimisticLockingStillWorks() -
testOptimisticLockingStillWorksAndDetectsConcurrentUpdate
public void testOptimisticLockingStillWorksAndDetectsConcurrentUpdate() -
testOptimisticLockingStillWorksAndDetectsConcurrentUpdateToSameValue
public void testOptimisticLockingStillWorksAndDetectsConcurrentUpdateToSameValue() -
testOptimisticLockingIsBlacklistedForConfiguredCountryType
public void testOptimisticLockingIsBlacklistedForConfiguredCountryType() -
testOptimisticLockingIsBlacklistedForConfiguredCountryTypeButWorksForTitleType
public void testOptimisticLockingIsBlacklistedForConfiguredCountryTypeButWorksForTitleType() -
testOptimisticLockingIsBlacklistedForConfiguredCountryAndTitleType
public void testOptimisticLockingIsBlacklistedForConfiguredCountryAndTitleType() -
testOptimisticLockingWhereCountryTypeIsConfiguredAsBlacklistedInOneThreadAndNotConfiguredInAnotherThread
public void testOptimisticLockingWhereCountryTypeIsConfiguredAsBlacklistedInOneThreadAndNotConfiguredInAnotherThread() -
testOptimisticLockingStillWorksTX
- Throws:
Exception
-
testOptimisticLockingStillWorksAndDetectsConcurrentUpdateTX
public void testOptimisticLockingStillWorksAndDetectsConcurrentUpdateTX() -
testOptimisticLockingEnabledButNotDetectsConcurrentUpdateTXForBlacklistedType
public void testOptimisticLockingEnabledButNotDetectsConcurrentUpdateTXForBlacklistedType() -
testOptimisticLockingStillWorksAndDetectsConcurrentUpdateToSameValueTX
public void testOptimisticLockingStillWorksAndDetectsConcurrentUpdateToSameValueTX() throws Exception- Throws:
Exception
-
withOptimisticLocking
-
withOptimisticLockingDisabledForType
-
inTransaction
-
inTransactionWhichFails
-
createModel
-
createTitleModel
-
simulateConcurrentUpdateToSameValueMustFail
protected void simulateConcurrentUpdateToSameValueMustFail(CountryModel model, Country jaloItem, boolean mustFailImmediately) -
simulateConcurrentUpdateToSameValueMustNotFail
protected void simulateConcurrentUpdateToSameValueMustNotFail(ItemModel model, ExtensibleItem jaloItem) -
simulateConcurrentUpdateMustFail
protected void simulateConcurrentUpdateMustFail(ItemModel model, ExtensibleItem jaloItem, boolean mustFailImmediately) -
simulateJaloWritesGetTrackedCorrectly
-
changeInOtherThread
-
testEmptyUpdateImpl
protected void testEmptyUpdateImpl(boolean legacyMode, int threads)
-