File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/stepdef/loan
fineract-e2e-tests-runner/src/test/resources/features
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -5341,6 +5341,20 @@ public void makeLoanContractTermination() throws IOException {
53415341 .isEqualTo (transactionId );
53425342 }
53435343
5344+ @ And ("Admin successfully terminates loan contract - no event check" )
5345+ public void makeLoanContractTerminationNoEventCheck () throws IOException {
5346+ final Response <PostLoansResponse > loanResponse = testContext ().get (TestContextKey .LOAN_CREATE_RESPONSE );
5347+ assert loanResponse .body () != null ;
5348+ final long loanId = loanResponse .body ().getLoanId ();
5349+
5350+ final PostLoansLoanIdRequest contractTerminationRequest = LoanRequestFactory .defaultLoanContractTerminationRequest ();
5351+
5352+ final Response <PostLoansLoanIdResponse > loanContractTerminationResponse = loansApi
5353+ .stateTransitions (loanId , contractTerminationRequest , "contractTermination" ).execute ();
5354+ testContext ().set (TestContextKey .LOAN_CONTRACT_TERMINATION_RESPONSE , loanContractTerminationResponse );
5355+ ErrorHelper .checkSuccessfulApiCall (loanContractTerminationResponse );
5356+ }
5357+
53445358 @ And ("Admin successfully undoes loan contract termination" )
53455359 public void undoLoanContractTermination () throws IOException {
53465360 final Response <PostLoansResponse > loanResponse = testContext ().get (TestContextKey .LOAN_CREATE_RESPONSE );
Original file line number Diff line number Diff line change @@ -1327,7 +1327,7 @@ Feature: Contract Termination
13271327 | LP2_ADV_PYMNT_INTEREST_DAILY_INTEREST_RECALCULATION_CONTRACT_TERMINATION | 01 January 2025 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 4 | MONTHS | 1 | MONTHS | 4 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
13281328 And Admin successfully approves the loan on "01 January 2025" with "100" amount and expected disbursement date on "01 January 2025"
13291329 And Admin successfully disburse the loan on "01 January 2025" with "100" EUR transaction amount
1330- And Admin successfully terminates loan contract
1330+ And Admin successfully terminates loan contract - no event check
13311331 Then Loan Repayment schedule has 1 periods, with the following data for periods:
13321332 | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
13331333 | | | 01 January 2025 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
@@ -1349,7 +1349,7 @@ Feature: Contract Termination
13491349 | LP2_ADV_PYMNT_INTEREST_DAILY_INTEREST_RECALCULATION_CONTRACT_TERMINATION_INT_RECOGNITION | 01 January 2025 | 100 | 7 | DECLINING_BALANCE | DAILY | EQUAL_INSTALLMENTS | 4 | MONTHS | 1 | MONTHS | 4 | 0 | 0 | 0 | ADVANCED_PAYMENT_ALLOCATION |
13501350 And Admin successfully approves the loan on "01 January 2025" with "100" amount and expected disbursement date on "01 January 2025"
13511351 And Admin successfully disburse the loan on "01 January 2025" with "100" EUR transaction amount
1352- And Admin successfully terminates loan contract
1352+ And Admin successfully terminates loan contract - no event check
13531353 Then Loan Repayment schedule has 1 periods, with the following data for periods:
13541354 | Nr | Days | Date | Paid date | Balance of loan | Principal due | Interest | Fees | Penalties | Due | Paid | In advance | Late | Outstanding |
13551355 | | | 01 January 2025 | | 100 .0 | | | 0 .0 | | 0 .0 | 0 .0 | | | |
Original file line number Diff line number Diff line change @@ -2255,4 +2255,5 @@ public boolean isLastPeriod(final Integer periodNumber) {
22552255 public void updateVariationDays (final long daysToAdd ) {
22562256 this .variationDays += daysToAdd ;
22572257 }
2258+
22582259}
You can’t perform that action at this time.
0 commit comments