Class VariantProductValidateInterceptorUnitTest

java.lang.Object
de.hybris.platform.product.interceptors.VariantProductValidateInterceptorUnitTest

@UnitTest public class VariantProductValidateInterceptorUnitTest extends Object
  • Constructor Details

    • VariantProductValidateInterceptorUnitTest

      public VariantProductValidateInterceptorUnitTest()
  • Method Details

    • prepare

      public void prepare()
    • testValidateForNull

      public void testValidateForNull()
    • testValidateForNotAVariantProduct

      public void testValidateForNotAVariantProduct() throws InterceptorException
      Throws:
      InterceptorException
    • testValidateForAVariantProduct

      public void testValidateForAVariantProduct() throws InterceptorException
      Throws:
      InterceptorException
    • testValidateForVariantProductWhenNew

      public void testValidateForVariantProductWhenNew() throws InterceptorException
      Throws:
      InterceptorException
    • testValidateForVariantProductWhenBaseProductChanged

      public void testValidateForVariantProductWhenBaseProductChanged() throws InterceptorException
      Throws:
      InterceptorException
    • testValidateForVariantProductWithNullBaseProductType

      public void testValidateForVariantProductWithNullBaseProductType()
    • testValidateForVariantProductWithIncompatibleBaseProductType

      public void testValidateForVariantProductWithIncompatibleBaseProductType()
      case

      base product variantType -> Shoe

      variant product type -> Shirt

    • testValidateForVariantProductWithCompatibleBaseProductTypeMoreSpecific

      public void testValidateForVariantProductWithCompatibleBaseProductTypeMoreSpecific()
      case

      base product variantType -> Shirt

      variant product type -> FancyShirt (more specific)

    • testValidateForVariantProductWithCompatibleBaseProductType

      public void testValidateForVariantProductWithCompatibleBaseProductType() throws InterceptorException
      case

      base product variantType -> Shirt

      variant product type -> Shirt

      Throws:
      InterceptorException
    • testValidateForVariantProductWithIncompatibleBaseProductTypeTooSpecific

      public void testValidateForVariantProductWithIncompatibleBaseProductTypeTooSpecific()
      case

      base product variantType -> FancyShirt (more specific)

      variant product type -> Shirt