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
Test for the OrderThresholdChangeDeliveryModePromotion.
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidPuts 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, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
OrderThresholdChangeDeliveryModePromotionTest
public OrderThresholdChangeDeliveryModePromotionTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractPromotionServiceTest- Throws:
Exception
-
testUpgradeDeliveryMode
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
-