Package de.hybris.platform.promotions
Class Order2PromotionResultRelationTest
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.Order2PromotionResultRelationTest
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest
public class Order2PromotionResultRelationTest
extends AbstractPromotionServiceTest
Tests the relation between
AbstractOrderModel and PromotionResultModel.-
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()voidTests the relation betweenAbstractOrderModelandPromotionResultModel, and betweenPromotionResultModelandAbstractPromotionActionModel.Methods 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
-
Order2PromotionResultRelationTest
public Order2PromotionResultRelationTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractPromotionServiceTest- Throws:
Exception
-
testOrderPromotionResultRelationTest
Tests the relation betweenAbstractOrderModelandPromotionResultModel, and betweenPromotionResultModelandAbstractPromotionActionModel. See PRO-66 for more details. If promotionsCachingStrategy bean is activated then instead getting promotionResults from db, data is obtained from cache.- adds a product to cart, adds a product promotion, and update promotions for the cart,
- tests both table sizes before and after the updatePromotion method call,
- adds an order promotion, and update promotion for the cart again,
- tests both table sizes again,
- creates an order from cart without updatePromotion method call, and tests both table sizes,
- removes the cart, and tests both table sizes,
- updates promotion for the order, and tests its table size,
- removes the order, and tests both table sizes.
- Throws:
CalculationException
-