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
@IntegrationTest public class DefaultConsentFacadeIntegrationTest extends ServicelayerTest
JUnit test suite forDefaultConsentFacade
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description DefaultConsentFacadeIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConsentDatagetConsentData(java.lang.String consentTemplateId, java.util.List<ConsentTemplateData> consentTemplateDataList)voidgetConsentsShouldReturnAnEmptyList()voidgetConsentsShouldReturnThreeConsentTemplates()voidgetLatestConsentTemplateShouldFindConsentTemplate()voidgetLatestConsentTemplateShouldThrowException()voidsetUp()voidtestGivenAndWithdrawConsentWorkflow()voidtestGivenConsentForNonExistingConsentTemplateId()voidtestGivenConsentForNonExistingConsentTemplateVersion()protected voidtestIdAndVersion(ConsentTemplateData consentTemplateData, java.lang.String expectedId, java.lang.Integer expectedVersion)voidtestWithdrawConsentForNonExistingConsent()-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
getLatestConsentTemplateShouldFindConsentTemplate
public void getLatestConsentTemplateShouldFindConsentTemplate() throws java.text.ParseException- Throws:
java.text.ParseException
-
getLatestConsentTemplateShouldThrowException
public void getLatestConsentTemplateShouldThrowException() throws java.text.ParseException- Throws:
java.text.ParseException
-
getConsentsShouldReturnThreeConsentTemplates
public void getConsentsShouldReturnThreeConsentTemplates() throws java.text.ParseException- Throws:
java.text.ParseException
-
getConsentsShouldReturnAnEmptyList
public void getConsentsShouldReturnAnEmptyList() throws java.text.ParseException- Throws:
java.text.ParseException
-
testGivenAndWithdrawConsentWorkflow
public void testGivenAndWithdrawConsentWorkflow() throws java.text.ParseException- Throws:
java.text.ParseException
-
testGivenConsentForNonExistingConsentTemplateId
public void testGivenConsentForNonExistingConsentTemplateId()
-
testGivenConsentForNonExistingConsentTemplateVersion
public void testGivenConsentForNonExistingConsentTemplateVersion()
-
testWithdrawConsentForNonExistingConsent
public void testWithdrawConsentForNonExistingConsent()
-
getConsentData
protected ConsentData getConsentData(java.lang.String consentTemplateId, java.util.List<ConsentTemplateData> consentTemplateDataList)
-
testIdAndVersion
protected void testIdAndVersion(ConsentTemplateData consentTemplateData, java.lang.String expectedId, java.lang.Integer expectedVersion)
-
-