@UnitTest public class CampaignRuleValidateInterceptorUnitTest extends java.lang.Object
| Constructor and Description |
|---|
CampaignRuleValidateInterceptorUnitTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
onPrepareAllowForRemovalOfUnpublishedRule()
Verify if the removal of unpublished rule is allowed
|
void |
onPrepareNewCampaignDoNotTrigger()
if the
CampaignModel is new, don't trigger interceptor |
void |
onPrepareNoSourceRules()
If there was no associated source rules - allow for modification
|
void |
onPreparePublishedRuleWasRemoved()
Verify if the removal of ever published rule is denied
|
void |
setUp() |
public CampaignRuleValidateInterceptorUnitTest()
public void setUp()
public void onPrepareNewCampaignDoNotTrigger()
throws InterceptorException
CampaignModel is new, don't trigger interceptorInterceptorExceptionpublic void onPrepareNoSourceRules()
throws InterceptorException
InterceptorExceptionpublic void onPreparePublishedRuleWasRemoved()
throws InterceptorException
InterceptorExceptionpublic void onPrepareAllowForRemovalOfUnpublishedRule()
throws InterceptorException
InterceptorExceptionCopyright © 2018 SAP SE. All Rights Reserved.