Class DefaultConsentFacadeIntegrationTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class DefaultConsentFacadeIntegrationTest extends ServicelayerTest
JUnit test suite for DefaultConsentFacade
  • Constructor Details

    • DefaultConsentFacadeIntegrationTest

      public DefaultConsentFacadeIntegrationTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • getLatestConsentTemplateShouldFindConsentTemplate

      public void getLatestConsentTemplateShouldFindConsentTemplate() throws ParseException
      Throws:
      ParseException
    • getLatestConsentTemplateShouldThrowException

      public void getLatestConsentTemplateShouldThrowException() throws ParseException
      Throws:
      ParseException
    • getConsentsShouldReturnThreeConsentTemplates

      public void getConsentsShouldReturnThreeConsentTemplates() throws ParseException
      Throws:
      ParseException
    • getConsentsShouldReturnAnEmptyList

      public void getConsentsShouldReturnAnEmptyList() throws ParseException
      Throws:
      ParseException
    • testGivenAndWithdrawConsentWorkflow

      public void testGivenAndWithdrawConsentWorkflow() throws ParseException
      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)