Class ConcurrentPromotionEngineServiceTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.promotionengineservices.promotionengine.impl.PromotionEngineServiceBaseTest
-
- de.hybris.platform.promotionengineservices.concurrent.ConcurrentPromotionEngineServiceTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class ConcurrentPromotionEngineServiceTest extends PromotionEngineServiceBaseTest
Integration test for multi-threaded updatePromotions calls
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ConcurrentPromotionEngineServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<CartModel>
findCarts()
protected AbstractRuleEngineRuleModel
getRuleForFile(java.lang.String fileName, java.lang.String path)
protected void
initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
void
setUp()
void
testConcurrentPromotionUpdate()
void
testConcurrentPromotionUpdateMultipleUsers()
-
Methods inherited from class de.hybris.platform.promotionengineservices.promotionengine.impl.PromotionEngineServiceBaseTest
getDroolsKIEBaseDao, getKieBaseModel, getPromotionEngineService, readRuleFile
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testConcurrentPromotionUpdate
public void testConcurrentPromotionUpdate() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testConcurrentPromotionUpdateMultipleUsers
public void testConcurrentPromotionUpdateMultipleUsers() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getRuleForFile
protected AbstractRuleEngineRuleModel getRuleForFile(java.lang.String fileName, java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
initializeRuleEngine
protected void initializeRuleEngine(AbstractRuleEngineRuleModel... rules)
-
findCarts
protected java.util.List<CartModel> findCarts()
-
-