Class DefaultPromotionActionServiceTest


  • @UnitTest
    public class DefaultPromotionActionServiceTest
    extends java.lang.Object
    • Constructor Detail

      • DefaultPromotionActionServiceTest

        public DefaultPromotionActionServiceTest()
    • 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