peter-kovacs-dpc commented on code in PR #4432:
URL: https://github.com/apache/fineract/pull/4432#discussion_r1991369934
##########
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/stepdef/loan/LoanStepDef.java:
##########
@@ -3442,4 +3443,34 @@ private List<String>
fetchValuesOfLoanChargeOffReasonOptions(final List<String>
}
return actualValues;
}
+
+ @Then("Log out transaction list by loanId, filtered out the following
transaction types: {string}")
+ public void transactionsExcluded(String excludedTypes) throws IOException {
+ Response<PostLoansResponse> loanCreateResponse =
testContext().get(TestContextKey.LOAN_CREATE_RESPONSE);
+ long loanId = loanCreateResponse.body().getLoanId();
+ Response<GetLoansLoanIdTransactionsResponse>
transactionsByLoanIdFiltered = getTransactionsByLoanIdFiltered(loanId,
excludedTypes);
+ log.info("Transaction list without the following transaction types: {}
\n{}", excludedTypes,
+ transactionsByLoanIdFiltered.body().toString());
+ }
+
+ @Then("Log out transaction list by loanExternalId, filtered out the
following transaction types: {string}")
+ public void transactionsExcludedBzExternalId(String excludedTypes) throws
IOException {
+ Response<PostLoansResponse> loanCreateResponse =
testContext().get(TestContextKey.LOAN_CREATE_RESPONSE);
+ String loanExternalId =
loanCreateResponse.body().getResourceExternalId();
+
+ Response<GetLoansLoanIdTransactionsResponse>
transactionsByLoanIdFiltered =
getTransactionsByLoanIExternalIdFiltered(loanExternalId,
+ excludedTypes);
+ log.info("Transaction list without the following transaction types: {}
\n{}", excludedTypes,
Review Comment:
we will have assertions later when this API will be used. At this point the
goal was only to make sure that the API works.
Basically the important methods are the private ones, the stepdef and the
test are just an extra.
My thoughts here was to think a little bit forward, but this ticket could be
checked by Postman only
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]