Merge pull request #4042 from alberto-art3ch/enhancement/loan_account_mandatory_parameters

FINERACT-2081: Validation error in mandatory loan account parameters
This commit is contained in:
Kristof Jozsa
2024-09-25 15:33:42 +02:00
committed by GitHub
6 changed files with 178 additions and 43 deletions
@@ -513,8 +513,8 @@ public class LoanStepDef extends AbstractStepDef {
@When("Admin creates a fully customized loan with Advanced payment allocation and with product no Advanced payment allocation set results an error:")
public void createFullyCustomizedLoanNoAdvancedPaymentError(DataTable table) throws IOException {
int errorCodeExpected = 400;
String errorMessageExpected = "Failed data validation due to: strategy.cannot.be.advanced.payment.allocation.if.not.configured.";
int errorCodeExpected = 403;
String errorMessageExpected = "Loan transaction processing strategy cannot be Advanced Payment Allocation Strategy if it's not configured on loan product";
List<List<String>> data = table.asLists();
List<String> loanData = data.get(1);