Class DefaultConsentServiceTest

java.lang.Object
com.hybris.yprofile.consent.services.DefaultConsentServiceTest

@UnitTest public class DefaultConsentServiceTest extends Object
  • Field Details

  • Constructor Details

    • DefaultConsentServiceTest

      public DefaultConsentServiceTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • releaseMocks

      public void releaseMocks() throws Exception
      Throws:
      Exception
    • assertWhenProfileAnonymousUserConsentHeaderIsEmptyShouldReturnFalse

      public void assertWhenProfileAnonymousUserConsentHeaderIsEmptyShouldReturnFalse() throws Exception
      Throws:
      Exception
    • assertWhenProfileAnonymousUserConsentCookieIsNullShouldReturnFalse

      public void assertWhenProfileAnonymousUserConsentCookieIsNullShouldReturnFalse() throws Exception
      Throws:
      Exception
    • assertWhenProfileAnonymousUserConsentHeaderIsNullShouldReturnFalse

      public void assertWhenProfileAnonymousUserConsentHeaderIsNullShouldReturnFalse() throws Exception
      Throws:
      Exception
    • assertWhenProfileAnonymousUserConsentCookieIsWithdrawnShouldReturnFalse

      public void assertWhenProfileAnonymousUserConsentCookieIsWithdrawnShouldReturnFalse() throws Exception
      Throws:
      Exception
    • assertWhenProfileAnonymousUserConsentHeaderIsWithdrawnShouldReturnFalse

      public void assertWhenProfileAnonymousUserConsentHeaderIsWithdrawnShouldReturnFalse() throws Exception
      Throws:
      Exception
    • assertWhenProfileAnonymousUserConsentCookieIsGivenShouldReturnTrue

      public void assertWhenProfileAnonymousUserConsentCookieIsGivenShouldReturnTrue() throws Exception
      Throws:
      Exception
    • assertWhenProfileAnonymousUserConsentHeaderIsGivenShouldReturnTrue

      public void assertWhenProfileAnonymousUserConsentHeaderIsGivenShouldReturnTrue() throws Exception
      Throws:
      Exception
    • assertWhenProfileLoggedInUserConsentIsNullShouldReturnFalse

      public void assertWhenProfileLoggedInUserConsentIsNullShouldReturnFalse() throws Exception
      Throws:
      Exception
    • assertWhenProfileLoggedInUserConsentIsWithdrawnShouldReturnFalse

      public void assertWhenProfileLoggedInUserConsentIsWithdrawnShouldReturnFalse() throws Exception
      Throws:
      Exception
    • assertWhenProfileLoggedInUserConsentIsGivenShouldReturnTrue

      public void assertWhenProfileLoggedInUserConsentIsGivenShouldReturnTrue() throws Exception
      Throws:
      Exception
    • verifyConsentReferenceFromCookieIsSavedInSessionAndConsentModel

      public void verifyConsentReferenceFromCookieIsSavedInSessionAndConsentModel()
    • verifyConsentReferenceFromHeaderIsSavedInSessionAndConsentModel

      public void verifyConsentReferenceFromHeaderIsSavedInSessionAndConsentModel()
    • verifyConsentReferenceIsSavedInSession

      public void verifyConsentReferenceIsSavedInSession()
    • verifyDeleteConsentReferenceRequestIsSentToProfileAndDeletedFromConsentModel

      public void verifyDeleteConsentReferenceRequestIsSentToProfileAndDeletedFromConsentModel()
    • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenProfileTrackingIsPaused

      public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenProfileTrackingIsPaused()
    • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenYaasConfigurationIsNotPresent

      public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenYaasConfigurationIsNotPresent()
    • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenConsentReferenceIsNotPresent

      public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenConsentReferenceIsNotPresent()
    • testSetProfileIdCookieWhenRequestHasNoCRCookie

      public void testSetProfileIdCookieWhenRequestHasNoCRCookie()
    • testSetProfileIdCookieWhenRequestAlreadyHasCRCookie

      public void testSetProfileIdCookieWhenRequestAlreadyHasCRCookie()
    • testSetProfileConsentCookieAndSession

      public void testSetProfileConsentCookieAndSession()
    • testSetProfileConsentCookieAndSessionWhenCookieExists

      public void testSetProfileConsentCookieAndSessionWhenCookieExists()