FINERACT-1724: Show reverted charge-off transactions

This commit is contained in:
Adam Saghy
2023-03-27 08:57:57 +02:00
committed by Arnold Gálovics
parent b40e700cc6
commit 1eab0fe1bd
3 changed files with 8 additions and 0 deletions
@@ -7083,6 +7083,11 @@ public class ClientLoanIntegrationTest {
assertNull(loanDetails.getSummary().getChargeOffReason());
assertNull(loanDetails.getTimeline().getChargedOffOnDate());
GetLoansLoanIdTransactions undoChargeOffTransaction = loanDetails.getTransactions()
.get(loanDetails.getTransactions().size() - 1);
assertTrue(undoChargeOffTransaction.getType().getChargeoff());
assertTrue(undoChargeOffTransaction.getManuallyReversed());
exception = assertThrows(CallFailedRuntimeException.class, () -> {
errorLoanTransactionHelper.undoChargeOffLoan((long) loanID, new PostLoansLoanIdTransactionsRequest());
});