Class DefaultCommerceConsentServiceTest

java.lang.Object
de.hybris.platform.commerceservices.consent.impl.DefaultCommerceConsentServiceTest

@UnitTest public class DefaultCommerceConsentServiceTest extends Object
  • Field Details

    • currentTime

      public static final Date currentTime
    • consentTemplateId

      public static final String consentTemplateId
      See Also:
    • consentTemplateVersion

      public static final Integer consentTemplateVersion
  • Constructor Details

    • DefaultCommerceConsentServiceTest

      public DefaultCommerceConsentServiceTest()
  • Method Details

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