From 64eaad1ffbcdb67a180066aa0c1491789566bcde Mon Sep 17 00:00:00 2001 From: Kristof Jozsa Date: Tue, 18 Jun 2024 14:08:55 +0200 Subject: [PATCH] fix more test dates --- .../SchedulerJobsTestResults.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/integration-tests/src/test/java/org/apache/fineract/integrationtests/SchedulerJobsTestResults.java b/integration-tests/src/test/java/org/apache/fineract/integrationtests/SchedulerJobsTestResults.java index f16e3cf19e5..09a179ed3d1 100644 --- a/integration-tests/src/test/java/org/apache/fineract/integrationtests/SchedulerJobsTestResults.java +++ b/integration-tests/src/test/java/org/apache/fineract/integrationtests/SchedulerJobsTestResults.java @@ -264,7 +264,7 @@ public void testTransferFeeForLoansFromSavingsJobOutcome() throws InterruptedExc Assertions.assertNotNull(loanProductID); final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), savingsId.toString(), - "10 January 2013"); + "1 March 2013"); Assertions.assertNotNull(loanID); HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(requestSpec, responseSpec, loanID); @@ -315,7 +315,7 @@ public void testApplyHolidaysToLoansJobOutcome() throws InterruptedException { final Integer loanProductID = createLoanProduct(null); Assertions.assertNotNull(loanProductID); - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "01 January 2013"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "01 March 2013"); Assertions.assertNotNull(loanID); HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(requestSpec, responseSpec, loanID); @@ -656,7 +656,7 @@ public void testUpdateLoanArrearsAgingJobOutcome() { final Integer loanProductID = createLoanProduct(null); Assertions.assertNotNull(loanProductID); - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2013"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 March 2013"); Assertions.assertNotNull(loanID); HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(requestSpec, responseSpec, loanID); @@ -786,7 +786,7 @@ public void testApplyPenaltyForOverdueLoansJobOutcome() throws InterruptedExcept final Integer loanProductID = createLoanProduct(overdueFeeChargeId.toString()); Assertions.assertNotNull(loanProductID); - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2020"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 March 2020"); Assertions.assertNotNull(loanID); HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(requestSpec, responseSpec, loanID); @@ -832,7 +832,7 @@ public void testApplyPenaltyForOverdueLoansJobOutcomeIfLoanChargedOff() throws I final Integer loanProductID = createLoanProductNoInterest(overdueFeeChargeId.toString()); Assertions.assertNotNull(loanProductID); - final Integer loanID = applyForLoanApplicationNoInterest(clientID.toString(), loanProductID.toString(), null, "10 January 2020"); + final Integer loanID = applyForLoanApplicationNoInterest(clientID.toString(), loanProductID.toString(), null, "01 March 2020"); Assertions.assertNotNull(loanID); HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(requestSpec, responseSpec, loanID); @@ -883,7 +883,7 @@ public void testLoanCOBJobOutcome() { List loanIDs = new ArrayList<>(); HashMap loanStatusHashMap; for (int i = 0; i < 3; i++) { - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2020"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 March 2020"); Assertions.assertNotNull(loanID); @@ -946,7 +946,7 @@ public void testLoanCOBJobOutcomeWhileAddingFeeOnDisbursementDate() { final Integer loanProductID = createLoanProductWithPeriodicAccrual(null); Assertions.assertNotNull(loanProductID); - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2020"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 June 2020"); Assertions.assertNotNull(loanID); @@ -1011,7 +1011,7 @@ public void testLoanCOBRunsOnlyOnLoansOneDayBehind() { Assertions.assertNotNull(loanProductID); HashMap loanStatusHashMap; - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2020"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 July 2020"); Assertions.assertNotNull(loanID); @@ -1068,7 +1068,7 @@ public void testLoanCOBApplyPenaltyOnDue() { Assertions.assertNotNull(loanProductID); HashMap loanStatusHashMap; - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2019"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 March 2019"); Assertions.assertNotNull(loanID); @@ -1129,7 +1129,7 @@ public void testLoanCOBApplyPenaltyOnDue1DayGracePeriod() { Assertions.assertNotNull(loanProductID); HashMap loanStatusHashMap; // Test penalty where there is 1 day grace period - final Integer loanID2 = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2020"); + final Integer loanID2 = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 April 2020"); Assertions.assertNotNull(loanID2); @@ -1186,7 +1186,7 @@ public void testAvoidUnncessaryPenaltyWhenAmountZeroForOverdueLoansJobOutcome() final Integer loanProductID = createLoanProduct(overdueFeeChargeId.toString()); Assertions.assertNotNull(loanProductID); - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2013"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 March 2013"); Assertions.assertNotNull(loanID); HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(requestSpec, responseSpec, loanID); @@ -1238,7 +1238,7 @@ public void testUpdateOverdueDaysForNPA() throws InterruptedException { final Integer loanProductID = createLoanProduct(null); Assertions.assertNotNull(loanProductID); - final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "10 January 2013"); + final Integer loanID = applyForLoanApplication(clientID.toString(), loanProductID.toString(), null, "1 March 2013"); Assertions.assertNotNull(loanID); HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(requestSpec, responseSpec, loanID);