Class DefaultCommerceConsentServiceTest


  • @UnitTest
    public class DefaultCommerceConsentServiceTest
    extends java.lang.Object
    • 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
    • Constructor Detail

      • DefaultCommerceConsentServiceTest

        public DefaultCommerceConsentServiceTest()
    • 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()