Class DefaultCommercePromotionRestrictionServiceTest
- java.lang.Object
-
- de.hybris.platform.commerceservices.promotion.impl.DefaultCommercePromotionRestrictionServiceTest
-
@UnitTest public class DefaultCommercePromotionRestrictionServiceTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractOrderModel
abstractOrderModel
protected AbstractPromotionModel
abstractPromotionModel
protected java.util.List<AbstractPromotionRestrictionModel>
abstractPromotionRestrictionList
protected AbstractPromotionRestrictionModel
abstractPromotionRestrictionModel
protected CartModel
cartModel
protected CommercePromotionRestrictionDao
commercePromotionRestrictionDao
protected DefaultCommercePromotionRestrictionService
commercePromotionRestrictionService
protected ModelService
modelService
protected OrderPromotionModel
orderPromotionModel
protected java.util.List<PromotionOrderRestrictionModel>
promotionOrderRestrictionList
protected PromotionOrderRestrictionModel
promotionOrderRestrictionModel
protected PromotionOrderRestrictionModel
promotionOrderRestrictionModelImpl
-
Constructor Summary
Constructors Constructor Description DefaultCommercePromotionRestrictionServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testAddOrderToRestrictionWithNotUniqueOrder()
void
testAddOrderToRestrictionWithUniqueOrder()
void
testGetPromotionOrderRestrictions()
void
testGetPromotionOrderRestrictionWithAmbiguousData()
void
testGetPromotionOrderRestrictionWithNotExistPromotion()
void
testGetPromotionOrderRestrictionWithNullParameter()
void
testGetPromotionRestrictions()
void
testGetPromotionRestrictionsWithNullParameter()
-
-
-
Field Detail
-
abstractPromotionModel
@Mock protected AbstractPromotionModel abstractPromotionModel
-
orderPromotionModel
@Mock protected OrderPromotionModel orderPromotionModel
-
commercePromotionRestrictionDao
@Mock protected CommercePromotionRestrictionDao commercePromotionRestrictionDao
-
promotionOrderRestrictionModel
@Mock protected PromotionOrderRestrictionModel promotionOrderRestrictionModel
-
abstractPromotionRestrictionModel
@Mock protected AbstractPromotionRestrictionModel abstractPromotionRestrictionModel
-
abstractOrderModel
@Mock protected AbstractOrderModel abstractOrderModel
-
cartModel
@Mock protected CartModel cartModel
-
modelService
@Mock protected ModelService modelService
-
commercePromotionRestrictionService
protected DefaultCommercePromotionRestrictionService commercePromotionRestrictionService
-
abstractPromotionRestrictionList
protected java.util.List<AbstractPromotionRestrictionModel> abstractPromotionRestrictionList
-
promotionOrderRestrictionList
protected java.util.List<PromotionOrderRestrictionModel> promotionOrderRestrictionList
-
promotionOrderRestrictionModelImpl
protected PromotionOrderRestrictionModel promotionOrderRestrictionModelImpl
-
-
Method Detail
-
setUp
public void setUp()
-
testGetPromotionRestrictionsWithNullParameter
public void testGetPromotionRestrictionsWithNullParameter()
-
testGetPromotionOrderRestrictionWithNullParameter
public void testGetPromotionOrderRestrictionWithNullParameter()
-
testGetPromotionOrderRestrictionWithNotExistPromotion
public void testGetPromotionOrderRestrictionWithNotExistPromotion()
-
testGetPromotionOrderRestrictionWithAmbiguousData
public void testGetPromotionOrderRestrictionWithAmbiguousData()
-
testGetPromotionRestrictions
public void testGetPromotionRestrictions()
-
testGetPromotionOrderRestrictions
public void testGetPromotionOrderRestrictions()
-
testAddOrderToRestrictionWithNotUniqueOrder
public void testAddOrderToRestrictionWithNotUniqueOrder()
-
testAddOrderToRestrictionWithUniqueOrder
public void testAddOrderToRestrictionWithUniqueOrder()
-
-