Class DefaultConsentFacadeIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.commercefacades.consent.impl.DefaultConsentFacadeIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
JUnit test suite for
DefaultConsentFacade-
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 TypeMethodDescriptionprotected ConsentDatagetConsentData(String consentTemplateId, List<ConsentTemplateData> consentTemplateDataList) voidvoidvoidvoidvoidsetUp()voidvoidvoidprotected voidtestIdAndVersion(ConsentTemplateData consentTemplateData, String expectedId, Integer expectedVersion) voidMethods 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
-
DefaultConsentFacadeIntegrationTest
public DefaultConsentFacadeIntegrationTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
getLatestConsentTemplateShouldFindConsentTemplate
- Throws:
ParseException
-
getLatestConsentTemplateShouldThrowException
- Throws:
ParseException
-
getConsentsShouldReturnThreeConsentTemplates
- Throws:
ParseException
-
getConsentsShouldReturnAnEmptyList
- Throws:
ParseException
-
testGivenAndWithdrawConsentWorkflow
- Throws:
ParseException
-
testGivenConsentForNonExistingConsentTemplateId
public void testGivenConsentForNonExistingConsentTemplateId() -
testGivenConsentForNonExistingConsentTemplateVersion
public void testGivenConsentForNonExistingConsentTemplateVersion() -
testWithdrawConsentForNonExistingConsent
public void testWithdrawConsentForNonExistingConsent() -
getConsentData
protected ConsentData getConsentData(String consentTemplateId, List<ConsentTemplateData> consentTemplateDataList) -
testIdAndVersion
protected void testIdAndVersion(ConsentTemplateData consentTemplateData, String expectedId, Integer expectedVersion)
-