Class DefaultCommerceConsentServiceTest
- java.lang.Object
-
- de.hybris.platform.commerceservices.consent.impl.DefaultCommerceConsentServiceTest
-
@UnitTest public class DefaultCommerceConsentServiceTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
consentTemplateId
static java.lang.Integer
consentTemplateVersion
static java.util.Date
currentTime
-
Constructor Summary
Constructors Constructor Description DefaultCommerceConsentServiceTest()
-
Method Summary
-
-
-
Field Detail
-
currentTime
public static final java.util.Date currentTime
-
consentTemplateId
public static final java.lang.String consentTemplateId
- See Also:
- Constant Field Values
-
consentTemplateVersion
public static final java.lang.Integer consentTemplateVersion
-
-
Method Detail
-
setup
public void setup()
-
testGetConsentTemplateWhenCosentTemplateIdNull
public void testGetConsentTemplateWhenCosentTemplateIdNull()
-
testGetConsentTemplateWhenCosentTemplateVersionNull
public void testGetConsentTemplateWhenCosentTemplateVersionNull()
-
testGetConsentTemplateWhenBaseSiteNull
public void testGetConsentTemplateWhenBaseSiteNull()
-
testGetConsentTemplateWhenConsentTemplateDoesNotExist
public void testGetConsentTemplateWhenConsentTemplateDoesNotExist()
-
testGetConsentTemplateWhenConsentTemplateExists
public void testGetConsentTemplateWhenConsentTemplateExists()
-
testGetConsentTemplateWhenConsentTemplateIdIsNull
public void testGetConsentTemplateWhenConsentTemplateIdIsNull()
-
testGetConsentTemplateWhenBaseSiteIsNull
public void testGetConsentTemplateWhenBaseSiteIsNull()
-
testGetLatestConsentTemplateWhenConsentTemplateIdAndBaseSiteProvided
public void testGetLatestConsentTemplateWhenConsentTemplateIdAndBaseSiteProvided()
-
testGetConsentTemplatesWhenBaseSiteIsNull
public void testGetConsentTemplatesWhenBaseSiteIsNull()
-
testGetConsentTemplates
public void testGetConsentTemplates()
-
testGetActiveConsentByCustomer
public void testGetActiveConsentByCustomer()
-
testGiveConsentWhenCustomerIsNull
public void testGiveConsentWhenCustomerIsNull()
-
testGiveConsentWhenConsentTemplateIsNull
public void testGiveConsentWhenConsentTemplateIsNull()
-
testGiveConsentWhenNoActiveConsents
public void testGiveConsentWhenNoActiveConsents()
-
testGiveConsentWhenConsentPreviouslyWithdrawn
public void testGiveConsentWhenConsentPreviouslyWithdrawn()
-
testGiveConsentWhenConsentAlreadyGiven
public void testGiveConsentWhenConsentAlreadyGiven()
-
testWithdrawConsentWhenConsentTemplateIsNull
public void testWithdrawConsentWhenConsentTemplateIsNull()
-
testWithdrawConsentWhenConsentAlreadyWithdrawn
public void testWithdrawConsentWhenConsentAlreadyWithdrawn()
-
testWithdrawConsentWhenConsentAvailableAndNotWithdrawnYet
public void testWithdrawConsentWhenConsentAvailableAndNotWithdrawnYet()
-
testWithdrawConsentWhenConsentIsNotAssociatedWithUser
public void testWithdrawConsentWhenConsentIsNotAssociatedWithUser()
-
-