Class ProductThresholdPriceDiscountPromotionTest
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.AbstractPromotionTest
de.hybris.platform.b2bacceleratorservices.jalo.promotions.ProductThresholdPriceDiscountPromotionTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class ProductThresholdPriceDiscountPromotionTest
extends AbstractPromotionTest
-
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()HW1210-3411: 253 Euro, HW2310-1001: 29.90 EurovoidEntry total 253.0d is greater than threshold 100.voidEntry total 29.90d is less than threshold 100.Methods inherited from class de.hybris.platform.promotions.AbstractPromotionTest
setUpMethods 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
-
ProductThresholdPriceDiscountPromotionTest
public ProductThresholdPriceDiscountPromotionTest()
-
-
Method Details
-
setup
HW1210-3411: 253 Euro, HW2310-1001: 29.90 Euro- Throws:
Exception
-
shouldApplyPromotion
Entry total 253.0d is greater than threshold 100. Promotion should be applied- Throws:
CalculationException
-
shouldNotApplyPromotion
Entry total 29.90d is less than threshold 100. Promotion should be not be applied- Throws:
CalculationException
-