Package de.hybris.platform.promotions
Class PromotionOrderEntryAdjustActionTest
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.PromotionOrderEntryAdjustActionTest
- All Implemented Interfaces:
JaloSessionHolder
-
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()voidTests PromotionOrderEntryAdjustAction with the same product in different cart entries.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
-
PromotionOrderEntryAdjustActionTest
public PromotionOrderEntryAdjustActionTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractPromotionServiceTest- Throws:
Exception
-
testPromotionOrderEntryAdjustAction
Tests PromotionOrderEntryAdjustAction with the same product in different cart entries.- adds one product1 in entry0, and one product2 in entry1,
- adds another product1 in entry2, and product2 in entry3,
- product1 has fixed price promotion(10 Euro), and product2 has percent promotion(10%).
- tests each entry should have the discount, instead of the whole discount in the first entry.
- Throws:
CalculationException
-