Package de.hybris.platform.promotions
Class ProductPromotionsTest
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.ProductPromotionsTest
- All Implemented Interfaces:
JaloSessionHolder
Test for PromotionsManager.getProductPromotions()
-
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 promotionsService.getProductPromotions(...) for product "HW1210-3411", tests the size of it and each promotion code: only one promotion in group1, two promotions in group1 and group2, four promotions in group1, group2, and group4. and in the end, test the product which doesn't belong to any categories.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
-
ProductPromotionsTest
public ProductPromotionsTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classAbstractPromotionServiceTest- Throws:
Exception
-
testGetProductPromotions
public void testGetProductPromotions()Tests the promotionsService.getProductPromotions(...)- for product "HW1210-3411", tests the size of it and each promotion code:
- only one promotion in group1,
- two promotions in group1 and group2,
- four promotions in group1, group2, and group4.
-