@UnitTest public class DefaultCommerceConsentServiceTest extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
consentTemplateId |
static java.lang.Integer |
consentTemplateVersion |
static java.util.Date |
currentTime |
| Constructor and Description |
|---|
DefaultCommerceConsentServiceTest() |
public static final java.util.Date currentTime
public static final java.lang.String consentTemplateId
public static final java.lang.Integer consentTemplateVersion
public void setup()
public void testGetConsentTemplateWhenCosentTemplateIdNull()
public void testGetConsentTemplateWhenCosentTemplateVersionNull()
public void testGetConsentTemplateWhenBaseSiteNull()
public void testGetConsentTemplateWhenConsentTemplateDoesNotExist()
public void testGetConsentTemplateWhenConsentTemplateExists()
public void testGetConsentTemplateWhenConsentTemplateIdIsNull()
public void testGetConsentTemplateWhenBaseSiteIsNull()
public void testGetLatestConsentTemplateWhenConsentTemplateIdAndBaseSiteProvided()
public void testGetConsentTemplatesWhenBaseSiteIsNull()
public void testGetConsentTemplates()
public void testGetActiveConsentByCustomer()
public void testGiveConsentWhenCustomerIsNull()
public void testGiveConsentWhenConsentTemplateIsNull()
public void testGiveConsentWhenNoActiveConsents()
public void testGiveConsentWhenConsentPreviouslyWithdrawn()
public void testGiveConsentWhenConsentAlreadyGiven()
public void testWithdrawConsentWhenConsentTemplateIsNull()
public void testWithdrawConsentWhenConsentAlreadyWithdrawn()
public void testWithdrawConsentWhenConsentAvailableAndNotWithdrawnYet()
public void testWithdrawConsentWhenConsentIsNotAssociatedWithUser()
Copyright © 2018 SAP SE. All Rights Reserved.