Class DefaultConsentServiceTest


  • @UnitTest
    public class DefaultConsentServiceTest
    extends java.lang.Object
    • Field Detail

      • CONSENT_REFERENCE_COOKIE_NAME

        public static final java.lang.String CONSENT_REFERENCE_COOKIE_NAME
        See Also:
        Constant Field Values
      • CONSENT_REFERENCE_SESSION_KEY

        public static final java.lang.String CONSENT_REFERENCE_SESSION_KEY
        See Also:
        Constant Field Values
      • PROFILE_ID_COOKIE_NAME

        public static final java.lang.String PROFILE_ID_COOKIE_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultConsentServiceTest

        public DefaultConsentServiceTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileAnonymousUserConsentCookieIsNullShouldReturnFalse

        public void assertWhenProfileAnonymousUserConsentCookieIsNullShouldReturnFalse()
                                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileAnonymousUserConsentHeaderIsNullShouldReturnFalse

        public void assertWhenProfileAnonymousUserConsentHeaderIsNullShouldReturnFalse()
                                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileAnonymousUserConsentCookieIsWithdrawnShouldReturnFalse

        public void assertWhenProfileAnonymousUserConsentCookieIsWithdrawnShouldReturnFalse()
                                                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileAnonymousUserConsentHeaderIsWithdrawnShouldReturnFalse

        public void assertWhenProfileAnonymousUserConsentHeaderIsWithdrawnShouldReturnFalse()
                                                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileAnonymousUserConsentCookieIsGivenShouldReturnTrue

        public void assertWhenProfileAnonymousUserConsentCookieIsGivenShouldReturnTrue()
                                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileAnonymousUserConsentHeaderIsGivenShouldReturnTrue

        public void assertWhenProfileAnonymousUserConsentHeaderIsGivenShouldReturnTrue()
                                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileLoggedInUserConsentIsNullShouldReturnFalse

        public void assertWhenProfileLoggedInUserConsentIsNullShouldReturnFalse()
                                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileLoggedInUserConsentIsWithdrawnShouldReturnFalse

        public void assertWhenProfileLoggedInUserConsentIsWithdrawnShouldReturnFalse()
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileLoggedInUserConsentIsGivenShouldReturnTrue

        public void assertWhenProfileLoggedInUserConsentIsGivenShouldReturnTrue()
                                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • verifyConsentReferenceFromCookieIsSavedInSessionAndCurrentUserModel

        public void verifyConsentReferenceFromCookieIsSavedInSessionAndCurrentUserModel()
      • verifyConsentReferenceFromHeaderIsSavedInSessionAndCurrentUserModel

        public void verifyConsentReferenceFromHeaderIsSavedInSessionAndCurrentUserModel()
      • verifyConsentReferenceIsSavedInSession

        public void verifyConsentReferenceIsSavedInSession()
      • verifyDeleteConsentReferenceRequestIsSentToProfileAndDeletedFromUserModel

        public void verifyDeleteConsentReferenceRequestIsSentToProfileAndDeletedFromUserModel()
      • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenProfileTrackingIsPaused

        public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenProfileTrackingIsPaused()
      • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenYaasConfigurationIsNotPresent

        public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenYaasConfigurationIsNotPresent()
      • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenConsentReferenceIsNotPresent

        public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenConsentReferenceIsNotPresent()
      • testSetProfileIdCookieWhenRequestHasNoCRCookie

        public void testSetProfileIdCookieWhenRequestHasNoCRCookie()
      • testSetProfileIdCookieWhenRequestAlreadyHasCRCookie

        public void testSetProfileIdCookieWhenRequestAlreadyHasCRCookie()