You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ar...@apache.org on 2022/12/28 18:13:19 UTC
[fineract] branch develop updated: FINERACT-1837: DelinquencyBucketsIntegrationTest performance
This is an automated email from the ASF dual-hosted git repository.
arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new fd3ad81f8 FINERACT-1837: DelinquencyBucketsIntegrationTest performance
fd3ad81f8 is described below
commit fd3ad81f813461898a918b0adce5867e27a36082
Author: Jose Alberto Hernandez <al...@MacBook-Pro.local>
AuthorDate: Fri Dec 23 00:23:57 2022 -0600
FINERACT-1837: DelinquencyBucketsIntegrationTest performance
---
.../DelinquencyBucketsIntegrationTest.java | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/integration-tests/src/test/java/org/apache/fineract/integrationtests/DelinquencyBucketsIntegrationTest.java b/integration-tests/src/test/java/org/apache/fineract/integrationtests/DelinquencyBucketsIntegrationTest.java
index 63b6c627c..010f7c1fa 100644
--- a/integration-tests/src/test/java/org/apache/fineract/integrationtests/DelinquencyBucketsIntegrationTest.java
+++ b/integration-tests/src/test/java/org/apache/fineract/integrationtests/DelinquencyBucketsIntegrationTest.java
@@ -708,7 +708,7 @@ public class DelinquencyBucketsIntegrationTest {
GlobalConfigurationHelper.updateIsBusinessDateEnabled(requestSpec, responseSpec, Boolean.TRUE);
LocalDate businessDate = Utils.getLocalDateOfTenant();
- businessDate = businessDate.minusDays(57);
+ businessDate = businessDate.minusDays(4);
log.info("Current date {}", businessDate);
BusinessDateHelper.updateBusinessDate(requestSpec, responseSpec, BusinessDateType.BUSINESS_DATE, businessDate);
@@ -721,16 +721,15 @@ public class DelinquencyBucketsIntegrationTest {
PostDelinquencyRangeResponse delinquencyRangeResponse = DelinquencyRangesHelper.createDelinquencyRange(requestSpec, responseSpec,
jsonRange);
rangeIds.add(delinquencyRangeResponse.getResourceId());
- jsonRange = DelinquencyRangesHelper.getAsJSON(4, 60);
- // Create
- delinquencyRangeResponse = DelinquencyRangesHelper.createDelinquencyRange(requestSpec, responseSpec, jsonRange);
- rangeIds.add(delinquencyRangeResponse.getResourceId());
-
final GetDelinquencyRangesResponse range = DelinquencyRangesHelper.getDelinquencyRange(requestSpec, responseSpec,
delinquencyRangeResponse.getResourceId());
final String classificationExpected = range.getClassification();
log.info("Expected Delinquency Range classification {}", classificationExpected);
+ jsonRange = DelinquencyRangesHelper.getAsJSON(4, 60);
+ delinquencyRangeResponse = DelinquencyRangesHelper.createDelinquencyRange(requestSpec, responseSpec, jsonRange);
+ rangeIds.add(delinquencyRangeResponse.getResourceId());
+
String jsonBucket = DelinquencyBucketsHelper.getAsJSON(rangeIds);
PostDelinquencyBucketResponse delinquencyBucketResponse = DelinquencyBucketsHelper.createDelinquencyBucket(requestSpec,
responseSpec, jsonBucket);
@@ -747,7 +746,7 @@ public class DelinquencyBucketsIntegrationTest {
final LocalDate todaysDate = Utils.getLocalDateOfTenant();
// Older date to have more than one overdue installment
- final LocalDate transactionDate = todaysDate.minusDays(65);
+ final LocalDate transactionDate = todaysDate.minusDays(33);
String operationDate = Utils.dateFormatter.format(transactionDate);
// Create Loan Account
@@ -782,7 +781,7 @@ public class DelinquencyBucketsIntegrationTest {
// Move the Business date to get older the loan and to have an overdue loan
LocalDate lastLoanCOBBusinessDate = businessDate;
- businessDate = businessDate.plusDays(50);
+ businessDate = businessDate.plusDays(3);
schedulerJobHelper.fastForwardTime(lastLoanCOBBusinessDate, businessDate, jobName, responseSpec);
log.info("Current date {}", businessDate);
BusinessDateHelper.updateBusinessDate(requestSpec, responseSpec, BusinessDateType.BUSINESS_DATE, businessDate);