Class DefaultConsentServiceTest
- java.lang.Object
-
- com.hybris.yprofile.consent.services.DefaultConsentServiceTest
-
@UnitTest public class DefaultConsentServiceTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONSENT_REFERENCE_COOKIE_NAMEstatic java.lang.StringCONSENT_REFERENCE_SESSION_KEYstatic java.lang.StringPROFILE_ID_COOKIE_NAME
-
Constructor Summary
Constructors Constructor Description DefaultConsentServiceTest()
-
Method Summary
-
-
-
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
-
-
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()
-
-