Class DefaultPromotionActionServiceTest
- java.lang.Object
-
- de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionActionServiceTest
-
@UnitTest public class DefaultPromotionActionServiceTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultPromotionActionServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldUpdateAndPersistPotentialPromotionFiredMessage()voidtestCreatePromotionResult()tests that a promotionResultModel gets created with the default valuesvoidtestCreatePromotionResultForExistingPromotionResult()tests that if there is an existing promotionResultModel created by the same rule, the existing one is returnedvoidtestCreatePromotionResultSetFiredMessage()voidtestCreatePromotionResultSetModuleVersion()voidtestCreatePromotionResultSetRulesModuleName()voidtestCreatePromotionResultSetVersion()voidtestTryToGetOrderEntryFromImproperAction()voidtestTryToGetOrderFromAction()
-
-
-
Method Detail
-
setUp
public void setUp()
-
testCreatePromotionResult
public void testCreatePromotionResult()
tests that a promotionResultModel gets created with the default values
-
testCreatePromotionResultForExistingPromotionResult
public void testCreatePromotionResultForExistingPromotionResult()
tests that if there is an existing promotionResultModel created by the same rule, the existing one is returned
-
testTryToGetOrderEntryFromImproperAction
public void testTryToGetOrderEntryFromImproperAction()
-
testTryToGetOrderFromAction
public void testTryToGetOrderFromAction()
-
testCreatePromotionResultSetVersion
public void testCreatePromotionResultSetVersion()
-
testCreatePromotionResultSetModuleVersion
public void testCreatePromotionResultSetModuleVersion()
-
testCreatePromotionResultSetRulesModuleName
public void testCreatePromotionResultSetRulesModuleName()
-
testCreatePromotionResultSetFiredMessage
public void testCreatePromotionResultSetFiredMessage()
-
shouldUpdateAndPersistPotentialPromotionFiredMessage
public void shouldUpdateAndPersistPotentialPromotionFiredMessage() throws java.lang.Exception- Throws:
java.lang.Exception
-
-