Class VariantProductValidateInterceptorUnitTest


  • @UnitTest
    public class VariantProductValidateInterceptorUnitTest
    extends java.lang.Object
    • Constructor Detail

      • VariantProductValidateInterceptorUnitTest

        public VariantProductValidateInterceptorUnitTest()
    • Method Detail

      • prepare

        public void prepare()
      • testValidateForVariantProductWithIncompatibleBaseProductType

        public void testValidateForVariantProductWithIncompatibleBaseProductType()
                                                                          throws InterceptorException
        case

        base product variantType -> Shoe

        variant product type -> Shirt

        Throws:
        InterceptorException
      • testValidateForVariantProductWithCompatibleBaseProductTypeMoreSpecific

        public void testValidateForVariantProductWithCompatibleBaseProductTypeMoreSpecific()
                                                                                    throws InterceptorException
        case

        base product variantType -> Shirt

        variant product type -> FencyShirt (more specific)

        Throws:
        InterceptorException
      • testValidateForVariantProductWithCompatibleBaseProductType

        public void testValidateForVariantProductWithCompatibleBaseProductType()
                                                                        throws InterceptorException
        case

        base product variantType -> Shirt

        variant product type -> Shirt

        Throws:
        InterceptorException
      • testValidateForVariantProductWithIncompatibleBaseProductTypeTooSpecific

        public void testValidateForVariantProductWithIncompatibleBaseProductTypeTooSpecific()
                                                                                     throws InterceptorException
        case

        base product variantType -> FencyShirt (more specific)

        variant product type -> Shirt

        Throws:
        InterceptorException