Class CxPromotionActionIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.personalizationpromotions.action.CxPromotionActionIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
public class CxPromotionActionIntegrationTest extends ServicelayerTest
-
-
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 CxPromotionActionIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CxPromotionActionModelcreateAction(java.lang.String code, java.lang.String promotionId)voidexecuteTest(java.lang.String promotionId, RuleStatus expectedStatus)protected PromotionSourceRuleModelgetPromotionRule(java.lang.String code)protected CxVariationModelgetVariation()protected voidpublishPromotions(java.lang.String... codes)voidsetUp()voidtestPublishedAware()voidtestPublishedComplex()voidtestPublishedComplexAware()voidtestPublishedEmpty()voidtestUnpublishedAware()voidtestUnpublishedComplex()voidtestUnpublishedComplexAware()voidtestUnpublishedEmpty()-
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
-
publishPromotions
protected void publishPromotions(java.lang.String... codes) throws RuleEngineServiceException- Throws:
RuleEngineServiceException
-
getVariation
protected CxVariationModel getVariation()
-
getPromotionRule
protected PromotionSourceRuleModel getPromotionRule(java.lang.String code)
-
createAction
protected CxPromotionActionModel createAction(java.lang.String code, java.lang.String promotionId)
-
executeTest
public void executeTest(java.lang.String promotionId, RuleStatus expectedStatus)
-
testPublishedEmpty
public void testPublishedEmpty()
-
testPublishedAware
public void testPublishedAware()
-
testPublishedComplex
public void testPublishedComplex()
-
testPublishedComplexAware
public void testPublishedComplexAware()
-
testUnpublishedEmpty
public void testUnpublishedEmpty()
-
testUnpublishedAware
public void testUnpublishedAware()
-
testUnpublishedComplex
public void testUnpublishedComplex()
-
testUnpublishedComplexAware
public void testUnpublishedComplexAware()
-
-