Package de.hybris.platform.promotions
Class OrderThresholdChangeDeliveryModePromotionTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.servicelayer.ServicelayerTransactionalTest
-
- de.hybris.platform.promotions.AbstractPromotionServiceTest
-
- de.hybris.platform.promotions.OrderThresholdChangeDeliveryModePromotionTest
-
- All Implemented Interfaces:
JaloSessionHolder
public class OrderThresholdChangeDeliveryModePromotionTest extends AbstractPromotionServiceTest
Test for the OrderThresholdChangeDeliveryModePromotion.
-
-
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 OrderThresholdChangeDeliveryModePromotionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testUpgradeDeliveryMode()
Puts product HW1230-0001 in the cart, sets the delivery mode to "ups" and updates the promotions in "prGroup4" which has an OrderThresholdChangeDeliveryModePromotion.-
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
- Overrides:
setUp
in classAbstractPromotionServiceTest
- Throws:
java.lang.Exception
-
testUpgradeDeliveryMode
public void testUpgradeDeliveryMode() throws CalculationException
Puts product HW1230-0001 in the cart, sets the delivery mode to "ups" and updates the promotions in "prGroup4" which has an OrderThresholdChangeDeliveryModePromotion. Information for delivery cost in region europe: dhl costs 8.0 Euro, and ups costs 5.0 Euro.- without promotion, the delivery mode is "ups" which costs 5.0 Euro,
- updates promotion, and the delivery mode is "dhl" and still costs 5.0 Euro,
- updates promotion again, and the delivery mode remains the same as "dhl" and still costs 5.0 Euro,
- enables the update delivery cost mode, and the delivery mode is still "dhl", but costs 8.0 Euro.
- Throws:
CalculationException
-
-