Class DefaultCommercePromotionFacadeTest
- java.lang.Object
-
- de.hybris.platform.commercefacades.promotion.impl.DefaultCommercePromotionFacadeTest
-
@UnitTest public class DefaultCommercePromotionFacadeTest extends java.lang.Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DefaultCommercePromotionFacadeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestGetOrderPromotions()voidtestGetOrderPromotionsForGroup()voidtestGetOrderPromotionsForGroupCollection()voidtestGetOrderPromotionsForGroupWithNull()voidtestGetProductPromotions()voidtestGetProductPromotionsForEmptyGroupCollection()voidtestGetProductPromotionsForGroup()voidtestGetProductPromotionsForGroupCollection()voidtestGetProductPromotionsForGroupWithNull()voidtestGetProductPromotionsForNotExistingGroup()voidtestGetPromotion()voidtestGetPromotionForOptions()voidtestGetPromotionWithNullParameter()
-
-
-
Field Detail
-
GROUP_CODE
protected static java.lang.String GROUP_CODE
-
PROMOTION_CODE
protected static java.lang.String PROMOTION_CODE
-
commercePromotionFacade
protected DefaultCommercePromotionFacade commercePromotionFacade
-
promotionsConverter
@Mock protected Converter<AbstractPromotionModel,PromotionData> promotionsConverter
-
promotionConfiguredPopulator
@Mock protected ConfigurablePopulator<AbstractPromotionModel,PromotionData,PromotionOption> promotionConfiguredPopulator
-
commercePromotionService
@Mock protected CommercePromotionService commercePromotionService
-
promotionsService
@Mock protected PromotionsService promotionsService
-
productPromotion
protected ProductPromotionModel productPromotion
-
productPromotionForGroup
protected ProductPromotionModel productPromotionForGroup
-
orderPromotion
protected OrderPromotionModel orderPromotion
-
orderPromotionForGroup
protected OrderPromotionModel orderPromotionForGroup
-
productPromotionList
protected java.util.List<ProductPromotionModel> productPromotionList
-
orderPromotionList
protected java.util.List<OrderPromotionModel> orderPromotionList
-
productPromotionForGroupList
protected java.util.List<ProductPromotionModel> productPromotionForGroupList
-
orderPromotionForGroupList
protected java.util.List<OrderPromotionModel> orderPromotionForGroupList
-
productPromotionData
protected PromotionData productPromotionData
-
productPromotionForGroupData
protected PromotionData productPromotionForGroupData
-
orderPromotionData
protected PromotionData orderPromotionData
-
orderPromotionForGroupData
protected PromotionData orderPromotionForGroupData
-
groupCodes
protected java.util.List<java.lang.String> groupCodes
-
promotionGroup
protected PromotionGroupModel promotionGroup
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetProductPromotions
public void testGetProductPromotions()
-
testGetOrderPromotions
public void testGetOrderPromotions()
-
testGetProductPromotionsForGroup
public void testGetProductPromotionsForGroup()
-
testGetProductPromotionsForGroupWithNull
public void testGetProductPromotionsForGroupWithNull()
-
testGetProductPromotionsForNotExistingGroup
public void testGetProductPromotionsForNotExistingGroup()
-
testGetProductPromotionsForGroupCollection
public void testGetProductPromotionsForGroupCollection()
-
testGetProductPromotionsForEmptyGroupCollection
public void testGetProductPromotionsForEmptyGroupCollection()
-
testGetOrderPromotionsForGroup
public void testGetOrderPromotionsForGroup()
-
testGetOrderPromotionsForGroupWithNull
public void testGetOrderPromotionsForGroupWithNull()
-
testGetOrderPromotionsForGroupCollection
public void testGetOrderPromotionsForGroupCollection()
-
testGetPromotion
public void testGetPromotion()
-
testGetPromotionForOptions
public void testGetPromotionForOptions()
-
testGetPromotionWithNullParameter
public void testGetPromotionWithNullParameter()
-
-