Class DefaultConsentFacadeIntegrationTest

    • Constructor Detail

      • DefaultConsentFacadeIntegrationTest

        public DefaultConsentFacadeIntegrationTest()
    • 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)