Skip to content

Commit

Permalink
fix more test dates
Browse files Browse the repository at this point in the history
  • Loading branch information
kjozsa committed Jun 18, 2024
1 parent 86d8bad commit 64eaad1
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -883,7 +883,7 @@ public void testLoanCOBJobOutcome() {
List<Integer> 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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 64eaad1

Please sign in to comment.