@UnitTest public class DefaultConsentServiceTest extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONSENT_REFERENCE_COOKIE_NAME |
static java.lang.String |
CONSENT_REFERENCE_SESSION_KEY |
| Constructor and Description |
|---|
DefaultConsentServiceTest() |
public static final java.lang.String CONSENT_REFERENCE_COOKIE_NAME
public static final java.lang.String CONSENT_REFERENCE_SESSION_KEY
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void assertWhenProfileAnonymousUserConsentIsNullShouldReturnFalse()
throws java.lang.Exception
java.lang.Exceptionpublic void assertWhenProfileAnonymousUserConsentIsWithdrawnShouldReturnFalse()
throws java.lang.Exception
java.lang.Exceptionpublic void assertWhenProfileAnonymousUserConsentIsGivenShouldReturnTrue()
throws java.lang.Exception
java.lang.Exceptionpublic void assertWhenProfileLoggedInUserConsentIsNullShouldReturnFalse()
throws java.lang.Exception
java.lang.Exceptionpublic void assertWhenProfileLoggedInUserConsentIsWithdrawnShouldReturnFalse()
throws java.lang.Exception
java.lang.Exceptionpublic void assertWhenProfileLoggedInUserConsentIsGivenShouldReturnTrue()
throws java.lang.Exception
java.lang.Exceptionpublic void verifyConsentReferenceIsSavedInSessionAndCurrentUserModel()
public void verifyDeleteConsentReferenceRequestIsSentToProfileAndDeletedFromUserModel()
public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenProfileTrackingIsPaused()
public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenYaasConfigurationIsNotPresent()
public void verifyDeleteConsentReferenceRequestIsNotSentToProfileWhenConsentReferenceIsNotPresent()
Copyright © 2018 SAP SE. All Rights Reserved.