Class CodeGenerationConfigurationUsageValidateInterceptorTest
- java.lang.Object
-
- de.hybris.platform.couponservices.interceptor.CodeGenerationConfigurationUsageValidateInterceptorTest
-
@UnitTest public class CodeGenerationConfigurationUsageValidateInterceptorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOUPON_IDstatic java.lang.StringCOUPON_NAMEstatic java.lang.StringEXCEPTION_MESSAGEstatic java.lang.StringEXCEPTION_MESSAGE_KEY
-
Constructor Summary
Constructors Constructor Description CodeGenerationConfigurationUsageValidateInterceptorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldBeRemovedSuccessfullyIfCodeGenerationConfigurationIsNotUsedByAnyMultiCodeCoupon()voidshouldFillTranslatedMessagesUsingCouponNameOrCouponIdAsFallback()voidshouldRaiseExceptionIfCodeGenerationConfigurationIsUsedByMultiCodeCoupon()voidshouldTranslateExceptionMessage()
-
-
-
Field Detail
-
EXCEPTION_MESSAGE
public static final java.lang.String EXCEPTION_MESSAGE
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY
public static final java.lang.String EXCEPTION_MESSAGE_KEY
- See Also:
- Constant Field Values
-
COUPON_NAME
public static final java.lang.String COUPON_NAME
- See Also:
- Constant Field Values
-
COUPON_ID
public static final java.lang.String COUPON_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldRaiseExceptionIfCodeGenerationConfigurationIsUsedByMultiCodeCoupon
public void shouldRaiseExceptionIfCodeGenerationConfigurationIsUsedByMultiCodeCoupon() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldTranslateExceptionMessage
public void shouldTranslateExceptionMessage() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldBeRemovedSuccessfullyIfCodeGenerationConfigurationIsNotUsedByAnyMultiCodeCoupon
public void shouldBeRemovedSuccessfullyIfCodeGenerationConfigurationIsNotUsedByAnyMultiCodeCoupon() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldFillTranslatedMessagesUsingCouponNameOrCouponIdAsFallback
public void shouldFillTranslatedMessagesUsingCouponNameOrCouponIdAsFallback() throws java.lang.Exception- Throws:
java.lang.Exception
-
-