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
public class PromotionOrderEntryAdjustActionTest extends AbstractPromotionServiceTest
-
-
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 PromotionOrderEntryAdjustActionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestPromotionOrderEntryAdjustAction()Tests 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, 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:
setUpin classAbstractPromotionServiceTest- Throws:
java.lang.Exception
-
testPromotionOrderEntryAdjustAction
public void testPromotionOrderEntryAdjustAction() throws CalculationExceptionTests 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
-
-