Class CMSCampaignRestrictionEvaluatorTest
- java.lang.Object
-
- de.hybris.platform.cms2.servicelayer.services.evaluator.impl.CMSCampaignRestrictionEvaluatorTest
-
@UnitTest public class CMSCampaignRestrictionEvaluatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.ExpectedExceptionexpectedException
-
Constructor Summary
Constructors Constructor Description CMSCampaignRestrictionEvaluatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CMSCampaignRestrictionModelcreateCampaignRestriction(java.util.Collection<CampaignModel> restrictedCampaigns)voidsetUp()voidtestEvaluateWhenActiveCampaignsAreEmptyOrNull()voidtestEvaluateWhenRestrictionCampaignsAreActive()voidtestEvaluateWhenRestrictionCampaignsAreActiveAndInactive()voidtestEvaluateWhenRestrictionCampaignsAreEmptyOrNull()voidtestEvaluateWhenRestrictionCampaignsAreInactive()voidtestEvaluateWhenRestrictionIsNull()
-
-
-
Method Detail
-
setUp
public void setUp()
-
testEvaluateWhenRestrictionIsNull
public void testEvaluateWhenRestrictionIsNull()
-
testEvaluateWhenRestrictionCampaignsAreActive
public void testEvaluateWhenRestrictionCampaignsAreActive()
-
testEvaluateWhenRestrictionCampaignsAreActiveAndInactive
public void testEvaluateWhenRestrictionCampaignsAreActiveAndInactive()
-
testEvaluateWhenRestrictionCampaignsAreInactive
public void testEvaluateWhenRestrictionCampaignsAreInactive()
-
testEvaluateWhenRestrictionCampaignsAreEmptyOrNull
public void testEvaluateWhenRestrictionCampaignsAreEmptyOrNull()
-
testEvaluateWhenActiveCampaignsAreEmptyOrNull
public void testEvaluateWhenActiveCampaignsAreEmptyOrNull()
-
createCampaignRestriction
protected CMSCampaignRestrictionModel createCampaignRestriction(java.util.Collection<CampaignModel> restrictedCampaigns)
-
-