Revert "[#FINERACT-2422] standardize use of aging vs. ageing (#5289)"
This reverts commit 61034e6041.
This commit is contained in:
committed by
Adam Saghy
parent
f0692a8cf1
commit
ed32c133cc
+7
-7
@@ -498,7 +498,7 @@ public abstract class BaseLoanIntegrationTest extends IntegrationTest {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true)//
|
||||
.graceOnArrearsAgeing(true)//
|
||||
).isEqualAmortization(false)//
|
||||
.delinquencyBucketId(delinquencyBucketId.longValue())//
|
||||
.enableDownPayment(false)//
|
||||
@@ -596,7 +596,7 @@ public abstract class BaseLoanIntegrationTest extends IntegrationTest {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true)//
|
||||
.graceOnArrearsAgeing(true)//
|
||||
).isEqualAmortization(false)//
|
||||
.delinquencyBucketId(delinquencyBucketId)//
|
||||
.enableDownPayment(false)//
|
||||
@@ -698,7 +698,7 @@ public abstract class BaseLoanIntegrationTest extends IntegrationTest {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true)//
|
||||
.graceOnArrearsAgeing(true)//
|
||||
).isEqualAmortization(false)//
|
||||
.delinquencyBucketId(delinquencyBucketId.longValue())//
|
||||
.enableDownPayment(false)//
|
||||
@@ -750,7 +750,7 @@ public abstract class BaseLoanIntegrationTest extends IntegrationTest {
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -767,7 +767,7 @@ public abstract class BaseLoanIntegrationTest extends IntegrationTest {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.allowPartialPeriodInterestCalculation(true)//
|
||||
.maxTrancheCount(10)//
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
@@ -887,7 +887,7 @@ public abstract class BaseLoanIntegrationTest extends IntegrationTest {
|
||||
.repaymentFrequencyType(RepaymentFrequencyType.MONTHS.longValue())//
|
||||
.interestType(interestType)//
|
||||
.amortizationType(amortizationType)//
|
||||
.graceOnArrearsAging(0);
|
||||
.graceOnArrearsAgeing(0);
|
||||
}
|
||||
|
||||
private RequestSpecification createRequestSpecification(String authKey) {
|
||||
@@ -1381,7 +1381,7 @@ public abstract class BaseLoanIntegrationTest extends IntegrationTest {
|
||||
.maxOutstandingLoanBalance(BigDecimal.valueOf(amount)) //
|
||||
.principal(BigDecimal.valueOf(amount)) //
|
||||
.loanType("individual") //
|
||||
.graceOnArrearsAging(0);
|
||||
.graceOnArrearsAgeing(0);
|
||||
if (customizer != null) {
|
||||
customizer.accept(postLoansRequest);
|
||||
}
|
||||
|
||||
+6
-6
@@ -3979,7 +3979,7 @@ public class ClientLoanIntegrationTest extends BaseLoanIntegrationTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLoanScheduleWithInterestRecalculation_WITH_CURRENT_REPAYMENT_BASED_ARREARS_AGING() {
|
||||
public void testLoanScheduleWithInterestRecalculation_WITH_CURRENT_REPAYMENT_BASED_ARREARS_AGEING() {
|
||||
|
||||
DateFormat dateFormat = new SimpleDateFormat(DATETIME_PATTERN, Locale.US);
|
||||
dateFormat.setTimeZone(Utils.getTimeZoneOfTenant());
|
||||
@@ -4060,7 +4060,7 @@ public class ClientLoanIntegrationTest extends BaseLoanIntegrationTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLoanScheduleWithInterestRecalculation_WITH_ORIGINAL_REPAYMENT_BASED_ARREARS_AGING() {
|
||||
public void testLoanScheduleWithInterestRecalculation_WITH_ORIGINAL_REPAYMENT_BASED_ARREARS_AGEING() {
|
||||
|
||||
DateFormat dateFormat = new SimpleDateFormat(DATETIME_PATTERN, Locale.US);
|
||||
dateFormat.setTimeZone(Utils.getTimeZoneOfTenant());
|
||||
@@ -7169,7 +7169,7 @@ public class ClientLoanIntegrationTest extends BaseLoanIntegrationTest {
|
||||
String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);
|
||||
List<String> comparisonAttributes = Arrays.asList("amortizationType", "interestType", "transactionProcessingStrategyCode",
|
||||
"interestCalculationPeriodType", "repaymentFrequencyType", "graceOnPrincipalPayment", "graceOnInterestPayment",
|
||||
"inArrearsTolerance", "graceOnArrearsAging");
|
||||
"inArrearsTolerance", "graceOnArrearsAgeing");
|
||||
|
||||
for (String comparisonAttribute : comparisonAttributes) {
|
||||
Object val1 = JsonPath.from(loanProductDetails).get(comparisonAttribute);
|
||||
@@ -7186,7 +7186,7 @@ public class ClientLoanIntegrationTest extends BaseLoanIntegrationTest {
|
||||
loanProductConfiguration.addProperty("inArrearsTolerance", bool);
|
||||
loanProductConfiguration.addProperty("repaymentEvery", bool);
|
||||
loanProductConfiguration.addProperty("graceOnPrincipalAndInterestPayment", bool);
|
||||
loanProductConfiguration.addProperty("graceOnArrearsAging", bool);
|
||||
loanProductConfiguration.addProperty("graceOnArrearsAgeing", bool);
|
||||
return loanProductConfiguration;
|
||||
}
|
||||
|
||||
@@ -8306,7 +8306,7 @@ public class ClientLoanIntegrationTest extends BaseLoanIntegrationTest {
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -8323,7 +8323,7 @@ public class ClientLoanIntegrationTest extends BaseLoanIntegrationTest {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.allowPartialPeriodInterestCalculation(true)//
|
||||
.maxTrancheCount(10)//
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
|
||||
+10
-10
@@ -342,7 +342,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
req.submittedOnDate("01 November 2023");
|
||||
req.setLoanTermFrequency(45);
|
||||
req.setRepaymentEvery(15);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
|
||||
// Partial Loan amount Disbursement
|
||||
@@ -448,7 +448,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
product.setDelinquencyBucketId(delinquencyBucketId.longValue());
|
||||
product.setMultiDisburseLoan(multiDisburseEnabled);
|
||||
product.setEnableDownPayment(true);
|
||||
product.setGraceOnArrearsAging(graceOnArrearsAging);
|
||||
product.setGraceOnArrearsAgeing(graceOnArrearsAging);
|
||||
|
||||
product.setDisbursedAmountPercentageForDownPayment(DOWN_PAYMENT_PERCENTAGE);
|
||||
product.setEnableAutoRepaymentForDownPayment(autoDownPaymentEnabled);
|
||||
@@ -481,7 +481,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
product.setDelinquencyBucketId(delinquencyBucketId.longValue());
|
||||
product.setMultiDisburseLoan(multiDisburseEnabled);
|
||||
product.setEnableDownPayment(false);
|
||||
product.setGraceOnArrearsAging(graceOnArrearsAging);
|
||||
product.setGraceOnArrearsAgeing(graceOnArrearsAging);
|
||||
product.setEnableInstallmentLevelDelinquency(installmentLevelDelinquencyEnabled);
|
||||
|
||||
PostLoanProductsResponse loanProductResponse = loanProductHelper.createLoanProduct(product);
|
||||
@@ -498,7 +498,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
Long loanId = applyAndApproveLoan(clientId, loanProductId, "01 January 2022", 1000.0, 2, req -> {
|
||||
req.setLoanTermFrequency(30);
|
||||
req.setRepaymentEvery(15);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
disburseLoan(loanId, BigDecimal.valueOf(1000.00), "01 January 2022");
|
||||
loanIdHolder[0] = loanId;
|
||||
@@ -548,7 +548,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
Long loanId = applyAndApproveLoan(clientId, loanProductId, "01 January 2022", 1000.0, 3, req -> {
|
||||
req.setLoanTermFrequency(45);
|
||||
req.setRepaymentEvery(15);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
disburseLoan(loanId, BigDecimal.valueOf(100.00), "01 January 2022");
|
||||
loanIdHolder[0] = loanId;
|
||||
@@ -595,7 +595,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
Long loanId = applyAndApproveLoan(clientId, loanProductId, "10 January 2022", 1000.0, 3, req -> {
|
||||
req.setLoanTermFrequency(30);
|
||||
req.setRepaymentEvery(10);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
disburseLoan(loanId, BigDecimal.valueOf(100.00), "10 January 2022");
|
||||
loanIdHolder[0] = loanId;
|
||||
@@ -642,7 +642,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
Long loanId = applyAndApproveLoan(clientId, loanProductId, "01 January 2022", 1000.0, 1, req -> {
|
||||
req.setLoanTermFrequency(30);
|
||||
req.setRepaymentEvery(30);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
disburseLoan(loanId, BigDecimal.valueOf(100.00), "01 January 2022");
|
||||
loanIdHolder[0] = loanId;
|
||||
@@ -708,7 +708,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
Long loanId = applyAndApproveLoan(clientId, loanProductId, "01 January 2022", 1000.0, 2, req -> {
|
||||
req.setLoanTermFrequency(20);
|
||||
req.setRepaymentEvery(10);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
disburseLoan(loanId, BigDecimal.valueOf(100.00), "01 January 2022");
|
||||
loanIdHolder[0] = loanId;
|
||||
@@ -743,7 +743,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
Long loanId = applyAndApproveLoan(clientId, loanProductId, "01 January 2022", 1000.0, 4, req -> {
|
||||
req.setLoanTermFrequency(60);
|
||||
req.setRepaymentEvery(15);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
disburseLoan(loanId, BigDecimal.valueOf(1000.00), "01 January 2022");
|
||||
loanIdHolder[0] = loanId;
|
||||
@@ -778,7 +778,7 @@ public class DelinquencyActionIntegrationTests extends BaseLoanIntegrationTest {
|
||||
Long loanId = applyAndApproveLoan(clientId, loanProductId, "28 May 2025", 1000.0, 7, req -> {
|
||||
req.setLoanTermFrequency(210);
|
||||
req.setRepaymentEvery(30);
|
||||
req.setGraceOnArrearsAging(3);
|
||||
req.setGraceOnArrearsAgeing(3);
|
||||
});
|
||||
disburseLoan(loanId, BigDecimal.valueOf(1000.00), "28 May 2025");
|
||||
loanIdHolder[0] = loanId;
|
||||
|
||||
+1
-1
@@ -987,7 +987,7 @@ public class DelinquencyBucketsIntegrationTest extends BaseLoanIntegrationTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLoanClassificationUsingAgingArrears() {
|
||||
public void testLoanClassificationUsingAgeingArrears() {
|
||||
try {
|
||||
globalConfigurationHelper.updateGlobalConfiguration(GlobalConfigurationConstants.ENABLE_BUSINESS_DATE,
|
||||
new PutGlobalConfigurationsRequest().enabled(true));
|
||||
|
||||
+3
-3
@@ -50,7 +50,7 @@ import org.apache.fineract.integrationtests.common.products.DelinquencyBucketsHe
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class LoanAccountArrearsAgingCOBBusinessStepTest extends BaseLoanIntegrationTest {
|
||||
public class LoanAccountArrearsAgeingCOBBusinessStepTest extends BaseLoanIntegrationTest {
|
||||
|
||||
private ResponseSpecification responseSpec;
|
||||
private RequestSpecification requestSpec;
|
||||
@@ -69,7 +69,7 @@ public class LoanAccountArrearsAgingCOBBusinessStepTest extends BaseLoanIntegrat
|
||||
}
|
||||
|
||||
@Test
|
||||
public void loanArrearsAgingCOBBusinessStepTest() {
|
||||
public void loanArrearsAgeingCOBBusinessStepTest() {
|
||||
// Set Business Date
|
||||
try {
|
||||
globalConfigurationHelper.updateGlobalConfiguration(GlobalConfigurationConstants.ENABLE_BUSINESS_DATE,
|
||||
@@ -105,7 +105,7 @@ public class LoanAccountArrearsAgingCOBBusinessStepTest extends BaseLoanIntegrat
|
||||
String loan2ExternalIdStr = UUID.randomUUID().toString();
|
||||
final Integer loanId_2 = createLoanAccount(loanOperationDate, clientId, loanProductId, loan2ExternalIdStr);
|
||||
|
||||
// Run Loan cob with verfying business step for Update Arrears aging details
|
||||
// Run Loan cob with verfying business step for Update Arrears ageing details
|
||||
final SchedulerJobHelper schedulerJobHelper = new SchedulerJobHelper(requestSpec);
|
||||
|
||||
// COB Step Validation
|
||||
+2
-2
@@ -733,7 +733,7 @@ public class LoanAccountChargeOffWithAdvancedPaymentAllocationTest extends BaseL
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -750,7 +750,7 @@ public class LoanAccountChargeOffWithAdvancedPaymentAllocationTest extends BaseL
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.allowPartialPeriodInterestCalculation(true)//
|
||||
.maxTrancheCount(10)//
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
|
||||
+2
-2
@@ -425,7 +425,7 @@ public class LoanAccountChargeReveseReplayWithAdvancedPaymentAllocationTest exte
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -442,7 +442,7 @@ public class LoanAccountChargeReveseReplayWithAdvancedPaymentAllocationTest exte
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.allowPartialPeriodInterestCalculation(true)//
|
||||
.maxTrancheCount(10)//
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
|
||||
+2
-2
@@ -927,7 +927,7 @@ public class LoanChargeOffAccountingTest extends BaseLoanIntegrationTest {
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -944,7 +944,7 @@ public class LoanChargeOffAccountingTest extends BaseLoanIntegrationTest {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.allowPartialPeriodInterestCalculation(true)//
|
||||
.maxTrancheCount(10)//
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
|
||||
+3
-3
@@ -60,7 +60,7 @@ public class LoanDelinquencyDetailsNextPaymentDateConfigurationTest extends Base
|
||||
req.submittedOnDate("01 November 2023");
|
||||
req.setLoanTermFrequency(45);
|
||||
req.setRepaymentEvery(15);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
|
||||
// Loan amount Disbursement
|
||||
@@ -146,7 +146,7 @@ public class LoanDelinquencyDetailsNextPaymentDateConfigurationTest extends Base
|
||||
req.submittedOnDate("01 November 2023");
|
||||
req.setLoanTermFrequency(45);
|
||||
req.setRepaymentEvery(15);
|
||||
req.setGraceOnArrearsAging(0);
|
||||
req.setGraceOnArrearsAgeing(0);
|
||||
});
|
||||
|
||||
// Loan amount Disbursement
|
||||
@@ -268,7 +268,7 @@ public class LoanDelinquencyDetailsNextPaymentDateConfigurationTest extends Base
|
||||
product.setDelinquencyBucketId(delinquencyBucketId.longValue());
|
||||
product.setMultiDisburseLoan(multiDisburseEnabled);
|
||||
product.setEnableDownPayment(true);
|
||||
product.setGraceOnArrearsAging(graceOnArrearsAging);
|
||||
product.setGraceOnArrearsAgeing(graceOnArrearsAging);
|
||||
|
||||
product.setDisbursedAmountPercentageForDownPayment(DOWN_PAYMENT_PERCENTAGE);
|
||||
product.setEnableAutoRepaymentForDownPayment(autoDownPaymentEnabled);
|
||||
|
||||
+6
-6
@@ -1022,7 +1022,7 @@ public class LoanInterestRecalculationCOBTest extends BaseLoanIntegrationTest {
|
||||
runAt("1 February 2023", () -> {
|
||||
Long loanId = loanIdRef.get();
|
||||
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Aging");
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Ageing");
|
||||
schedulerJobHelper.executeAndAwaitJob("Recalculate Interest For Loans");
|
||||
|
||||
GetLoansLoanIdResponse loanDetails = loanTransactionHelper.getLoanDetails(loanId);
|
||||
@@ -1036,7 +1036,7 @@ public class LoanInterestRecalculationCOBTest extends BaseLoanIntegrationTest {
|
||||
runAt("2 February 2023", () -> {
|
||||
Long loanId = loanIdRef.get();
|
||||
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Aging");
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Ageing");
|
||||
schedulerJobHelper.executeAndAwaitJob("Recalculate Interest For Loans");
|
||||
|
||||
GetLoansLoanIdResponse loanDetails = loanTransactionHelper.getLoanDetails(loanId);
|
||||
@@ -1050,7 +1050,7 @@ public class LoanInterestRecalculationCOBTest extends BaseLoanIntegrationTest {
|
||||
runAt("20 February 2023", () -> {
|
||||
Long loanId = loanIdRef.get();
|
||||
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Aging");
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Ageing");
|
||||
schedulerJobHelper.executeAndAwaitJob("Recalculate Interest For Loans");
|
||||
|
||||
GetLoansLoanIdResponse loanDetails = loanTransactionHelper.getLoanDetails(loanId);
|
||||
@@ -1064,7 +1064,7 @@ public class LoanInterestRecalculationCOBTest extends BaseLoanIntegrationTest {
|
||||
runAt("2 March 2023", () -> {
|
||||
Long loanId = loanIdRef.get();
|
||||
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Aging");
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Ageing");
|
||||
schedulerJobHelper.executeAndAwaitJob("Recalculate Interest For Loans");
|
||||
|
||||
GetLoansLoanIdResponse loanDetails = loanTransactionHelper.getLoanDetails(loanId);
|
||||
@@ -1114,7 +1114,7 @@ public class LoanInterestRecalculationCOBTest extends BaseLoanIntegrationTest {
|
||||
runAt("2 February 2023", () -> {
|
||||
Long loanId = loanIdRef.get();
|
||||
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Aging");
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Ageing");
|
||||
schedulerJobHelper.executeAndAwaitJob("Recalculate Interest For Loans");
|
||||
|
||||
GetLoansLoanIdResponse loanDetails = loanTransactionHelper.getLoanDetails(loanId);
|
||||
@@ -1206,7 +1206,7 @@ public class LoanInterestRecalculationCOBTest extends BaseLoanIntegrationTest {
|
||||
runAt("8 February 2023", () -> {
|
||||
Long loanId = loanIdRef.get();
|
||||
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Aging");
|
||||
schedulerJobHelper.executeAndAwaitJob("Update Loan Arrears Ageing");
|
||||
schedulerJobHelper.executeAndAwaitJob("Recalculate Interest For Loans");
|
||||
|
||||
GetLoansLoanIdResponse loanDetails = loanTransactionHelper.getLoanDetails(loanId);
|
||||
|
||||
+2
-2
@@ -1194,7 +1194,7 @@ public class LoanPostChargeOffScenariosTest extends BaseLoanIntegrationTest {
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -1211,7 +1211,7 @@ public class LoanPostChargeOffScenariosTest extends BaseLoanIntegrationTest {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.allowPartialPeriodInterestCalculation(true)//
|
||||
.maxTrancheCount(10)//
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
|
||||
+2
-2
@@ -164,7 +164,7 @@ public class LoanProductChargeOffReasonMappingsTest extends BaseLoanIntegrationT
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -180,7 +180,7 @@ public class LoanProductChargeOffReasonMappingsTest extends BaseLoanIntegrationT
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))
|
||||
.graceOnArrearsAgeing(true))
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
.charges(charges)//
|
||||
.accountingRule(3)//
|
||||
|
||||
+2
-2
@@ -1485,7 +1485,7 @@ public class LoanTransactionAccrualActivityPostingTest extends BaseLoanIntegrati
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -1501,7 +1501,7 @@ public class LoanTransactionAccrualActivityPostingTest extends BaseLoanIntegrati
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))
|
||||
.graceOnArrearsAgeing(true))
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
.charges(charges)//
|
||||
.accountingRule(3)//
|
||||
|
||||
+2
-2
@@ -194,7 +194,7 @@ public class RepaymentReverseExternalIdTest extends BaseLoanIntegrationTest {
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -210,7 +210,7 @@ public class RepaymentReverseExternalIdTest extends BaseLoanIntegrationTest {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))
|
||||
.graceOnArrearsAgeing(true))
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
.charges(charges)//
|
||||
.accountingRule(3)//
|
||||
|
||||
+1
-1
@@ -659,7 +659,7 @@ public class SchedulerJobsTestResults extends IntegrationTest {
|
||||
JsonPath.from(loanDetails).get("netDisbursalAmount").toString());
|
||||
LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);
|
||||
|
||||
String JobName = "Update Loan Arrears Aging";
|
||||
String JobName = "Update Loan Arrears Ageing";
|
||||
|
||||
schedulerJobHelper.executeAndAwaitJob(JobName);
|
||||
HashMap loanSummaryData = loanTransactionHelper.getLoanSummary(requestSpec, responseSpec, loanID);
|
||||
|
||||
+2
-2
@@ -275,7 +275,7 @@ public class UndoRepaymentWithDownPaymentIntegrationTest extends BaseLoanIntegra
|
||||
.daysInYearType(1)//
|
||||
.daysInMonthType(1)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -293,7 +293,7 @@ public class UndoRepaymentWithDownPaymentIntegrationTest extends BaseLoanIntegra
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.allowPartialPeriodInterestCalculation(true)//
|
||||
.maxTrancheCount(10)//
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
|
||||
+3
-3
@@ -78,7 +78,7 @@ public interface LoanProductTemplates {
|
||||
.daysInYearType(DaysInYearType.ACTUAL)//
|
||||
.daysInMonthType(DaysInMonthType.ACTUAL)//
|
||||
.canDefineInstallmentAmount(true)//
|
||||
.graceOnArrearsAging(3)//
|
||||
.graceOnArrearsAgeing(3)//
|
||||
.overdueDaysForNPA(179)//
|
||||
.accountMovesOutOfNPAOnlyOnArrearsCompletion(false)//
|
||||
.principalThresholdForLastInstallment(50)//
|
||||
@@ -95,7 +95,7 @@ public interface LoanProductTemplates {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.allowPartialPeriodInterestCalculation(true)//
|
||||
.maxTrancheCount(10)//
|
||||
.outstandingLoanBalance(10000.0)//
|
||||
@@ -225,7 +225,7 @@ public interface LoanProductTemplates {
|
||||
.inArrearsTolerance(true)//
|
||||
.repaymentEvery(true)//
|
||||
.graceOnPrincipalAndInterestPayment(true)//
|
||||
.graceOnArrearsAging(true))//
|
||||
.graceOnArrearsAgeing(true))//
|
||||
.isEqualAmortization(false)//
|
||||
.enableDownPayment(false)//
|
||||
.enableInstallmentLevelDelinquency(false)//
|
||||
|
||||
+3
-3
@@ -68,7 +68,7 @@ public class LoanPenaltyBackdatedTransactionTest extends BaseLoanIntegrationTest
|
||||
|
||||
// Create Loan Product
|
||||
PostLoanProductsRequest product = createOnePeriod30DaysLongNoInterestPeriodicAccrualProduct() //
|
||||
.graceOnArrearsAging(0).numberOfRepayments(numberOfRepayments) //
|
||||
.graceOnArrearsAgeing(0).numberOfRepayments(numberOfRepayments) //
|
||||
.repaymentEvery(repaymentEvery) //
|
||||
.installmentAmountInMultiplesOf(null) //
|
||||
.repaymentFrequencyType(RepaymentFrequencyType.DAYS.longValue()) //
|
||||
@@ -181,7 +181,7 @@ public class LoanPenaltyBackdatedTransactionTest extends BaseLoanIntegrationTest
|
||||
|
||||
// Create Loan Product
|
||||
PostLoanProductsRequest product = createOnePeriod30DaysLongNoInterestPeriodicAccrualProduct() //
|
||||
.graceOnArrearsAging(0).numberOfRepayments(numberOfRepayments) //
|
||||
.graceOnArrearsAgeing(0).numberOfRepayments(numberOfRepayments) //
|
||||
.repaymentEvery(repaymentEvery) //
|
||||
.installmentAmountInMultiplesOf(null) //
|
||||
.repaymentFrequencyType(RepaymentFrequencyType.DAYS.longValue()) //
|
||||
@@ -295,7 +295,7 @@ public class LoanPenaltyBackdatedTransactionTest extends BaseLoanIntegrationTest
|
||||
|
||||
// Create Loan Product
|
||||
PostLoanProductsRequest product = createOnePeriod30DaysLongNoInterestPeriodicAccrualProduct() //
|
||||
.graceOnArrearsAging(0).numberOfRepayments(numberOfRepayments) //
|
||||
.graceOnArrearsAgeing(0).numberOfRepayments(numberOfRepayments) //
|
||||
.repaymentEvery(repaymentEvery) //
|
||||
.installmentAmountInMultiplesOf(null) //
|
||||
.repaymentFrequencyType(RepaymentFrequencyType.DAYS.longValue()) //
|
||||
|
||||
Reference in New Issue
Block a user