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
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ProductThresholdPriceDiscountPromotionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setup()
HW1210-3411: 253 Euro, HW2310-1001: 29.90 Eurovoid
shouldApplyPromotion()
Entry total 253.0d is greater than threshold 100.void
shouldNotApplyPromotion()
Entry total 29.90d is less than threshold 100.-
Methods inherited from class de.hybris.platform.promotions.AbstractPromotionTest
setUp
-
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
HW1210-3411: 253 Euro, HW2310-1001: 29.90 Euro- Throws:
java.lang.Exception
-
shouldApplyPromotion
public void shouldApplyPromotion() throws CalculationException
Entry total 253.0d is greater than threshold 100. Promotion should be applied- Throws:
CalculationException
-
shouldNotApplyPromotion
public void shouldNotApplyPromotion() throws CalculationException
Entry total 29.90d is less than threshold 100. Promotion should be not be applied- Throws:
CalculationException
-
-