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
    • Constructor Detail

      • DefaultConsentServiceTest

        public DefaultConsentServiceTest()
    • Method Detail

      • setUp

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

        public void assertWhenProfileAnonymousUserConsentIsNullShouldReturnFalse()
                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileAnonymousUserConsentIsWithdrawnShouldReturnFalse

        public void assertWhenProfileAnonymousUserConsentIsWithdrawnShouldReturnFalse()
                                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertWhenProfileAnonymousUserConsentIsGivenShouldReturnTrue

        public void assertWhenProfileAnonymousUserConsentIsGivenShouldReturnTrue()
                                                                          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
      • verifyConsentReferenceIsSavedInSessionAndCurrentUserModel

        public void verifyConsentReferenceIsSavedInSessionAndCurrentUserModel()
      • verifyConsentReferenceIsSavedInSession

        public void verifyConsentReferenceIsSavedInSession()
      • verifyDeleteConsentReferenceRequestIsSentToProfileAndDeletedFromUserModel

        public void verifyDeleteConsentReferenceRequestIsSentToProfileAndDeletedFromUserModel()
      • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenProfileTrackingIsPaused

        public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenProfileTrackingIsPaused()
      • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenYaasConfigurationIsNotPresent

        public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenYaasConfigurationIsNotPresent()
      • verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenConsentReferenceIsNotPresent

        public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenConsentReferenceIsNotPresent()