public class OrderPromotionWithProductRestrictionTest extends AbstractPromotionServiceTest
defaultLanguage, jaloSession| 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, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic OrderPromotionWithProductRestrictionTest()
public void setUp()
throws Exception
setUp in class AbstractPromotionServiceTestExceptionpublic void testOrderPromotionWithoutRestriction()
throws CalculationException
CalculationExceptionpublic void testOrderPromotionWithRestriction()
throws CalculationException
CalculationExceptionpublic void testMoreProductsOrderPromotionWithoutRestriction()
throws CalculationException
CalculationExceptionpublic void testMoreProductsOrderPromotionWithRestriction()
throws CalculationException
CalculationExceptionCopyright © 2017 SAP SE. All Rights Reserved.