FINERACT-2421: Fix undo repayment with linked chargeback error
This commit is contained in:
committed by
Adam Saghy
parent
9ca717ffd2
commit
136a966fc3
+1
-1
@@ -157,7 +157,7 @@ public class LoanTransactionChargebackTest extends BaseLoanIntegrationTest {
|
||||
chargebackTransactionId, operationDate, responseSpecErr403);
|
||||
|
||||
// Try to reverse a Loan Transaction repayment with linked transactions
|
||||
reverseTransactionResponse = loanTransactionHelper.reverseLoanTransaction(loanId, transactionId, operationDate, responseSpecErr503);
|
||||
reverseTransactionResponse = loanTransactionHelper.reverseLoanTransaction(loanId, transactionId, operationDate, responseSpecErr403);
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
|
||||
+2
-2
@@ -148,7 +148,7 @@ public class LoanWriteOffWithAdvancedPaymentAllocationTest {
|
||||
new PostLoansLoanIdTransactionsTransactionIdRequest().transactionDate("9 September 2022").locale("en")
|
||||
.dateFormat("dd MMMM yyyy").transactionAmount(0.0)));
|
||||
|
||||
assertEquals(503, exception.getResponse().code());
|
||||
assertEquals(403, exception.getResponse().code());
|
||||
assertTrue(exception.getMessage().contains("error.msg.loan.written.off.update.not.allowed"));
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ public class LoanWriteOffWithAdvancedPaymentAllocationTest {
|
||||
new PostLoansLoanIdTransactionsTransactionIdRequest().transactionDate("8 September 2022").locale("en")
|
||||
.dateFormat("dd MMMM yyyy").transactionAmount(0.0)));
|
||||
|
||||
assertEquals(503, exception.getResponse().code());
|
||||
assertEquals(403, exception.getResponse().code());
|
||||
assertTrue(exception.getMessage().contains("error.msg.loan.written.off.update.not.allowed"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user