Class ProductConfigurationCartValidationStrategyImplTest
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.strategies.impl.ProductConfigurationCartValidationStrategyImplTest
-
- Direct Known Subclasses:
ProductConfigurationB2BCartValidationStrategyImplTest
@UnitTest public class ProductConfigurationCartValidationStrategyImplTest extends java.lang.Object
Unit tests
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseStoreModelbaseStoreModelprotected BaseStoreServicebaseStoreServiceprotected CartEntryModelcartEntryModelprotected CartModelcartModelprotected CartServicecartServiceprotected CommerceStockServicecommerceStockServiceprotected ModelServicemodelServiceprotected static java.lang.StringPRODUCT_CODEprotected ProductConfigurationCartEntryValidationStrategyproductConfigurationCartEntryValidationStrategyprotected ProductModelproductModelprotected ProductServiceproductService
-
Constructor Summary
Constructors Constructor Description ProductConfigurationCartValidationStrategyImplTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetup()voidtestValidateCartEntry()voidtestValidateCartEntryConfigModification()voidtestValidateCartEntryNoStock()protected CommerceCartModificationvalidateCartEntry(CartModel cartModel, CartEntryModel cartEntryModel)
-
-
-
Field Detail
-
PRODUCT_CODE
protected static final java.lang.String PRODUCT_CODE
- See Also:
- Constant Field Values
-
cartModel
@Mock protected CartModel cartModel
-
cartEntryModel
@Mock protected CartEntryModel cartEntryModel
-
productModel
@Mock protected ProductModel productModel
-
baseStoreModel
@Mock protected BaseStoreModel baseStoreModel
-
productService
@Mock protected ProductService productService
-
commerceStockService
@Mock protected CommerceStockService commerceStockService
-
baseStoreService
@Mock protected BaseStoreService baseStoreService
-
cartService
@Mock protected CartService cartService
-
modelService
@Mock protected ModelService modelService
-
productConfigurationCartEntryValidationStrategy
@Mock protected ProductConfigurationCartEntryValidationStrategy productConfigurationCartEntryValidationStrategy
-
-
Method Detail
-
setup
public void setup()
-
validateCartEntry
protected CommerceCartModification validateCartEntry(CartModel cartModel, CartEntryModel cartEntryModel)
-
testValidateCartEntry
public void testValidateCartEntry()
-
testValidateCartEntryConfigModification
public void testValidateCartEntryConfigModification()
-
testValidateCartEntryNoStock
public void testValidateCartEntryNoStock()
-
-