Class DefaultCommerceConsentServiceIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.commerceservices.consent.impl.DefaultCommerceConsentServiceIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
JUnit test suite for
DefaultCommerceConsentService-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
DefaultCommerceConsentServiceIntegrationTest
public DefaultCommerceConsentServiceIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testGetConsentTemplates
public void testGetConsentTemplates() -
testGetConsentTemplatesWhenNoConsentAvailableForSite
public void testGetConsentTemplatesWhenNoConsentAvailableForSite() -
testGetConsentTemplatesWhenWrongSiteProvided
public void testGetConsentTemplatesWhenWrongSiteProvided() -
testGetConsentTemplateForExistingConsentTemplate
public void testGetConsentTemplateForExistingConsentTemplate() -
testGetConsentTemplateForNonExistingConsentTemplateBecauseOfWrongVersion
public void testGetConsentTemplateForNonExistingConsentTemplateBecauseOfWrongVersion() -
testGetConsentTemplateForNonExistingConsentTemplate
public void testGetConsentTemplateForNonExistingConsentTemplate() -
testGetLatestConsentTemplateForExistingConsentTemplate
public void testGetLatestConsentTemplateForExistingConsentTemplate() -
testGetLatestConsentTemplateForNonExistingConsentTemplate
public void testGetLatestConsentTemplateForNonExistingConsentTemplate() -
testGetConsentReturnsCorrectConsent
public void testGetConsentReturnsCorrectConsent() -
testGetConsentThrowsExceptionWhenNoConsentFound
public void testGetConsentThrowsExceptionWhenNoConsentFound() -
testGetActiveConsentReturnsTheLatestGivenConsent
public void testGetActiveConsentReturnsTheLatestGivenConsent() -
testGetActiveConsentWhenNoConsentExists
public void testGetActiveConsentWhenNoConsentExists() -
testGiveConsentWhenNoConsentExists
public void testGiveConsentWhenNoConsentExists() -
testGiveConsentWhenConsentGivenAlready
public void testGiveConsentWhenConsentGivenAlready() -
testGiveConsentWhenConsentAvailableButWithdraw
public void testGiveConsentWhenConsentAvailableButWithdraw() -
testWithdrawConsentWhenWithdrawnAlready
public void testWithdrawConsentWhenWithdrawnAlready() -
testWithdrawConsentWhenConsentWasNotWithdrawnYet
public void testWithdrawConsentWhenConsentWasNotWithdrawnYet() -
testWithdrawConsentWhenConsentNotAssociatedWithUser
public void testWithdrawConsentWhenConsentNotAssociatedWithUser() -
testUserDoesntHaveEffectivelyActiveConsentWhenNoConsentExists
public void testUserDoesntHaveEffectivelyActiveConsentWhenNoConsentExists() -
testUserHasEffectivelyActiveConsentWhenConsentWasNotWithdrawnYet
public void testUserHasEffectivelyActiveConsentWhenConsentWasNotWithdrawnYet() -
testUserDoesntHaveEffectivelyActiveConsentWhenConsentWasWithdrawn
public void testUserDoesntHaveEffectivelyActiveConsentWhenConsentWasWithdrawn()
-