FINERACT-2398: added e2e test cases for validation of re-amortization:- Interest handling-Default behavior

This commit is contained in:
Rustam Zeinalov
2025-12-08 11:54:16 +01:00
committed by Adam Saghy
parent 3c4d8da1c8
commit 3d8d122bb3
2 changed files with 213 additions and 3 deletions
@@ -620,10 +620,11 @@ public class AdvancedPaymentScheduleTransactionProcessor extends AbstractLoanRep
if (transactionCtx instanceof ProgressiveTransactionCtx progressiveTransactionCtx
&& loanTransaction.getLoan().isInterestBearingAndInterestRecalculationEnabled()) {
handleReAmortizationWithInterestRecalculationEnabled(loanTransaction, progressiveTransactionCtx);
} else {
// TODO: implement interestRecalculation = false logic
throw new UnsupportedOperationException(
"Logic for re-amortization when interest bearing loan has interestRecalculation disabled is not implemented");
}
// TODO: implement interestRecalculation = false logic
throw new UnsupportedOperationException(
"Logic for re-amortization when interest bearing loan has interestRecalculation disabled is not implemented");
}
private static void reamortizationOnNonInterestBearingLoan(LoanTransaction loanTransaction, TransactionCtx transactionCtx) {