Class DefaultConsentServiceTest
java.lang.Object
com.hybris.yprofile.consent.services.DefaultConsentServiceTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CONSENT_REFERENCE_COOKIE_NAME
- See Also:
-
CONSENT_REFERENCE_SESSION_KEY
- See Also:
-
PROFILE_ID_COOKIE_NAME
- See Also:
-
-
Constructor Details
-
DefaultConsentServiceTest
public DefaultConsentServiceTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
releaseMocks
- Throws:
Exception
-
assertWhenProfileAnonymousUserConsentHeaderIsEmptyShouldReturnFalse
- Throws:
Exception
-
assertWhenProfileAnonymousUserConsentCookieIsNullShouldReturnFalse
- Throws:
Exception
-
assertWhenProfileAnonymousUserConsentHeaderIsNullShouldReturnFalse
- Throws:
Exception
-
assertWhenProfileAnonymousUserConsentCookieIsWithdrawnShouldReturnFalse
public void assertWhenProfileAnonymousUserConsentCookieIsWithdrawnShouldReturnFalse() throws Exception- Throws:
Exception
-
assertWhenProfileAnonymousUserConsentHeaderIsWithdrawnShouldReturnFalse
public void assertWhenProfileAnonymousUserConsentHeaderIsWithdrawnShouldReturnFalse() throws Exception- Throws:
Exception
-
assertWhenProfileAnonymousUserConsentCookieIsGivenShouldReturnTrue
- Throws:
Exception
-
assertWhenProfileAnonymousUserConsentHeaderIsGivenShouldReturnTrue
- Throws:
Exception
-
assertWhenProfileLoggedInUserConsentIsNullShouldReturnFalse
- Throws:
Exception
-
assertWhenProfileLoggedInUserConsentIsWithdrawnShouldReturnFalse
- Throws:
Exception
-
assertWhenProfileLoggedInUserConsentIsGivenShouldReturnTrue
- 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()
-