FINERACT-984-7: Extend GitHub Action pipeline for PostgreSQL

This commit is contained in:
Arnold Galovics
2022-02-23 18:45:10 +01:00
committed by Aleksandar Vidakovic
parent 8eec00b50f
commit 11b0a91aa7
7 changed files with 138 additions and 6 deletions
@@ -339,7 +339,8 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_1, external1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_2, external2_hold_funds);
List<HashMap> guarantors = this.guarantorHelper.getAllGuarantor(loanID);
this.guarantorHelper.deleteGuarantor(externalGuarantor, loanID);
HashMap response = this.guarantorHelper.deleteGuarantor(externalGuarantor, loanID);
assertEquals(externalGuarantor, response.get("resourceId"));
assertFalse((Boolean) this.guarantorHelper.getGuarantor(externalGuarantor, loanID, "status"));
HashMap errorlog = this.guarantorHelper.deleteGuarantor(withoutGuaranteeAmount, loanID);
ArrayList<HashMap> error = (ArrayList<HashMap>) errorlog.get(CommonConstants.RESPONSE_ERROR);
@@ -359,7 +360,8 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_3, EXTERNAL1_GURANTEE);
Assertions.assertNotNull(externalGuarantee_3);
this.guarantorHelper.deleteGuarantor(externalGuarantee_1, fundDetailId, loanID);
response = this.guarantorHelper.deleteGuarantor(externalGuarantee_3, fundDetailId, loanID);
assertEquals(externalGuarantee_3, response.get("resourceId"));
guarantors = this.guarantorHelper.getAllGuarantor(loanID);
assertEquals(4, guarantors.size());
externalGuarantee_1_details = (List<HashMap>) this.guarantorHelper.getGuarantor(externalGuarantee_1, loanID,