Skip to content

Commit 035b902

Browse files
peter-kovacs-dpcadamsaghy
authored andcommitted
FINERACT-2398: Re-amortization:- Preview Schedule API during re-amortization - E2E tests
1 parent ad90d98 commit 035b902

File tree

5 files changed

+427
-91
lines changed

5 files changed

+427
-91
lines changed

fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/stepdef/loan/LoanReAgingStepDef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public void reAgePreviewContractTerminatedLoanFailure(final DataTable table) thr
384384
assertThat(exception.getDeveloperMessage()).contains(ErrorMessageHelper.reAgeContractTerminatedLoanFailure());
385385
}
386386

387-
@Then("Loan Repayment schedule preview has {int} periods, with the following data for periods:")
387+
@Then("Loan Re-Aged Repayment schedule preview has {int} periods, with the following data for periods:")
388388
public void loanRepaymentSchedulePreviewPeriodsCheck(int linesExpected, DataTable table) {
389389
LoanScheduleData scheduleResponse = testContext().get(TestContextKey.LOAN_REAGING_PREVIEW_RESPONSE);
390390

fineract-e2e-tests-runner/src/test/resources/features/LoanReAging.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ Feature: LoanReAging
22882288
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
22892289
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
22902290
| 1 | MONTHS | 15 March 2024 | 6 |
2291-
Then Loan Repayment schedule preview has 9 periods, with the following data for periods:
2291+
Then Loan Re-Aged Repayment schedule preview has 9 periods, with the following data for periods:
22922292
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
22932293
| | | 01 January 2024 | | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | | |
22942294
| 1 | 0 | 01 January 2024 | 09 March 2024 | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
@@ -2426,7 +2426,7 @@ Feature: LoanReAging
24262426
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
24272427
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
24282428
| 1 | MONTHS | 15 February 2025 | 6 |
2429-
Then Loan Repayment schedule preview has 7 periods, with the following data for periods:
2429+
Then Loan Re-Aged Repayment schedule preview has 7 periods, with the following data for periods:
24302430
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
24312431
| | | 01 January 2025 | | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | | |
24322432
| 1 | 31 | 01 February 2025 | 03 February 2025 | 833.0 | 167.0 | 0.0 | 0.0 | 0.0 | 167.0 | 167.0 | 0.0 | 167.0 | 0.0 |
@@ -2516,7 +2516,7 @@ Feature: LoanReAging
25162516
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
25172517
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
25182518
| 1 | MONTHS | 15 February 2025 | 1 |
2519-
Then Loan Repayment schedule preview has 2 periods, with the following data for periods:
2519+
Then Loan Re-Aged Repayment schedule preview has 2 periods, with the following data for periods:
25202520
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
25212521
| | | 01 January 2025 | | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | | |
25222522
| 1 | 31 | 01 February 2025 | 03 February 2025 | 833.0 | 167.0 | 0.0 | 0.0 | 0.0 | 167.0 | 167.0 | 0.0 | 167.0 | 0.0 |
@@ -2646,7 +2646,7 @@ Feature: LoanReAging
26462646
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
26472647
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
26482648
| 1 | MONTHS | 15 February 2025 | 2 |
2649-
Then Loan Repayment schedule preview has 3 periods, with the following data for periods:
2649+
Then Loan Re-Aged Repayment schedule preview has 3 periods, with the following data for periods:
26502650
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
26512651
| | | 01 January 2025 | | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | | |
26522652
| 1 | 31 | 01 February 2025 | 10 February 2025 | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
@@ -3229,7 +3229,7 @@ Feature: LoanReAging
32293229
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
32303230
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
32313231
| 1 | MONTHS | 15 March 2024 | 10 |
3232-
Then Loan Repayment schedule preview has 13 periods, with the following data for periods:
3232+
Then Loan Re-Aged Repayment schedule preview has 13 periods, with the following data for periods:
32333233
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
32343234
| | | 01 January 2024 | | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | | |
32353235
| 1 | 0 | 01 January 2024 | 09 March 2024 | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
@@ -3319,7 +3319,7 @@ Feature: LoanReAging
33193319
When Admin creates a Loan re-aging preview by Loan external ID with the following data:
33203320
| frequencyNumber | frequencyType | startDate | numberOfInstallments |
33213321
| 1 | MONTHS | 15 March 2024 | 2 |
3322-
Then Loan Repayment schedule preview has 6 periods, with the following data for periods:
3322+
Then Loan Re-Aged Repayment schedule preview has 6 periods, with the following data for periods:
33233323
| Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
33243324
| | | 01 January 2024 | | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | | | |
33253325
| 1 | 0 | 01 January 2024 | 09 March 2024 | 1000.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |

0 commit comments

Comments
 (0)