public class OrderPromotionWithProductRestrictionTest extends AbstractPromotionServiceTest
importServicejaloSession| Constructor and Description |
|---|
OrderPromotionWithProductRestrictionTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testMoreProductsOrderPromotionWithoutRestriction()
Creates an orderThresholdFreeGiftPromotion without product restriction, and the cart contains proudct2 which is
not restricted.
|
void |
testMoreProductsOrderPromotionWithRestriction()
Creates an orderThresholdFreeGiftPromotion WITH product restriction, and the cart contains proudct2 which is not
restricted, so the free gift product should be added to the cart.
|
void |
testOrderPromotionWithoutRestriction()
Creates an orderThresholdFreeGiftPromotion without product restriction, and the cart contains only product1 which
is restricted.
|
void |
testOrderPromotionWithRestriction()
Creates an orderThresholdFreeGiftPromotion WITH product restriction, and the cart contains only product1 which is
restricted.
|
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic OrderPromotionWithProductRestrictionTest()
public void setUp()
throws java.lang.Exception
setUp in class AbstractPromotionServiceTestjava.lang.Exceptionpublic void testOrderPromotionWithoutRestriction()
throws CalculationException
CalculationExceptionpublic void testOrderPromotionWithRestriction()
throws CalculationException
CalculationExceptionpublic void testMoreProductsOrderPromotionWithoutRestriction()
throws CalculationException
CalculationExceptionpublic void testMoreProductsOrderPromotionWithRestriction()
throws CalculationException
CalculationExceptionCopyright © 2018 SAP SE. All Rights Reserved.