Class CampaignRuleValidateInterceptorUnitTest
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.interceptors.CampaignRuleValidateInterceptorUnitTest
-
@UnitTest public class CampaignRuleValidateInterceptorUnitTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CampaignRuleValidateInterceptorUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPrepareAllowForRemovalOfUnpublishedRule()Verify if the removal of unpublished rule is allowedvoidonPrepareNewCampaignDoNotTrigger()if theCampaignModelis new, don't trigger interceptorvoidonPrepareNoSourceRules()If there was no associated source rules - allow for modificationvoidonPreparePublishedRuleWasRemoved()Verify if the removal of ever published rule is deniedvoidsetUp()
-
-
-
Method Detail
-
setUp
public void setUp()
-
onPrepareNewCampaignDoNotTrigger
public void onPrepareNewCampaignDoNotTrigger() throws InterceptorExceptionif theCampaignModelis new, don't trigger interceptor- Throws:
InterceptorException
-
onPrepareNoSourceRules
public void onPrepareNoSourceRules() throws InterceptorExceptionIf there was no associated source rules - allow for modification- Throws:
InterceptorException
-
onPreparePublishedRuleWasRemoved
public void onPreparePublishedRuleWasRemoved() throws InterceptorExceptionVerify if the removal of ever published rule is denied- Throws:
InterceptorException
-
onPrepareAllowForRemovalOfUnpublishedRule
public void onPrepareAllowForRemovalOfUnpublishedRule() throws InterceptorExceptionVerify if the removal of unpublished rule is allowed- Throws:
InterceptorException
-
-