Aman-Mittal commented on code in PR #5813:
URL: https://github.com/apache/fineract/pull/5813#discussion_r3281793354
##########
fineract-provider/src/test/java/org/apache/fineract/portfolio/delinquency/service/DelinquencyReadPlatformServiceImplTest.java:
##########
@@ -157,6 +179,55 @@ public void
testMultiplePausesWithoutResumeActionCurrentBusinessDateBetweenStart
);
}
+ @Test
+ void
givenPendingLoanWithNullProduct_whenCalculateLoanCollectionData_thenNoExceptionAndOverAppliedIsNull()
{
+ Loan loan = mock(Loan.class);
+ when(loan.getLoanProduct()).thenReturn(null);
+ when(loan.isSubmittedAndPendingApproval()).thenReturn(true);
+ // REMOVED: when(loan.isApproved()).thenReturn(false); ← unnecessary
Review Comment:
Make sure to remove this. Comment , seems unnecessary ai generated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]