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 CxPromotionActionModel
createAction(java.lang.String code, java.lang.String promotionId)
void
executeTest(java.lang.String promotionId, RuleStatus expectedStatus)
protected PromotionSourceRuleModel
getPromotionRule(java.lang.String code)
protected CxVariationModel
getVariation()
protected void
publishPromotions(java.lang.String... codes)
void
setUp()
void
testPublishedAware()
void
testPublishedComplex()
void
testPublishedComplexAware()
void
testPublishedEmpty()
void
testUnpublishedAware()
void
testUnpublishedComplex()
void
testUnpublishedComplexAware()
void
testUnpublishedEmpty()
-
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()
-
-