Class VariantProductValidateInterceptorUnitTest
- java.lang.Object
-
- de.hybris.platform.product.interceptors.VariantProductValidateInterceptorUnitTest
-
@UnitTest public class VariantProductValidateInterceptorUnitTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description VariantProductValidateInterceptorUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprepare()voidtestValidateForAVariantProduct()voidtestValidateForNotAVariantProduct()voidtestValidateForNull()voidtestValidateForVariantProductWhenBaseProdcutChanged()voidtestValidateForVariantProductWhenNew()voidtestValidateForVariantProductWithCompatibleBaseProductType()casevoidtestValidateForVariantProductWithCompatibleBaseProductTypeMoreSpecific()casevoidtestValidateForVariantProductWithIncompatibleBaseProductType()casevoidtestValidateForVariantProductWithIncompatibleBaseProductTypeTooSpecific()casevoidtestValidateForVariantProductWithNullBaseProductType()
-
-
-
Method Detail
-
prepare
public void prepare()
-
testValidateForNull
public void testValidateForNull() throws InterceptorException- Throws:
InterceptorException
-
testValidateForNotAVariantProduct
public void testValidateForNotAVariantProduct() throws InterceptorException- Throws:
InterceptorException
-
testValidateForAVariantProduct
public void testValidateForAVariantProduct() throws InterceptorException- Throws:
InterceptorException
-
testValidateForVariantProductWhenNew
public void testValidateForVariantProductWhenNew() throws InterceptorException- Throws:
InterceptorException
-
testValidateForVariantProductWhenBaseProdcutChanged
public void testValidateForVariantProductWhenBaseProdcutChanged() throws InterceptorException- Throws:
InterceptorException
-
testValidateForVariantProductWithNullBaseProductType
public void testValidateForVariantProductWithNullBaseProductType() throws InterceptorException- Throws:
InterceptorException
-
testValidateForVariantProductWithIncompatibleBaseProductType
public void testValidateForVariantProductWithIncompatibleBaseProductType() throws InterceptorExceptioncasebase product variantType -> Shoe
variant product type -> Shirt
- Throws:
InterceptorException
-
testValidateForVariantProductWithCompatibleBaseProductTypeMoreSpecific
public void testValidateForVariantProductWithCompatibleBaseProductTypeMoreSpecific() throws InterceptorExceptioncasebase product variantType -> Shirt
variant product type -> FencyShirt (more specific)
- Throws:
InterceptorException
-
testValidateForVariantProductWithCompatibleBaseProductType
public void testValidateForVariantProductWithCompatibleBaseProductType() throws InterceptorExceptioncasebase product variantType -> Shirt
variant product type -> Shirt
- Throws:
InterceptorException
-
testValidateForVariantProductWithIncompatibleBaseProductTypeTooSpecific
public void testValidateForVariantProductWithIncompatibleBaseProductTypeTooSpecific() throws InterceptorExceptioncasebase product variantType -> FencyShirt (more specific)
variant product type -> Shirt
- Throws:
InterceptorException
-
-