FINERACT-2169: Refactor loan account api controller;
This commit is contained in:
committed by
Adam Saghy
parent
993393b519
commit
3aa011b32e
+2
-2
@@ -26,7 +26,7 @@ import io.restassured.specification.ResponseSpecification;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import org.apache.fineract.client.models.GetLoanAccountLockResponse;
|
||||
import org.apache.fineract.client.models.LoanAccountLockResponseDTO;
|
||||
import org.apache.fineract.integrationtests.common.ClientHelper;
|
||||
import org.apache.fineract.integrationtests.common.Utils;
|
||||
import org.apache.fineract.integrationtests.common.accounting.Account;
|
||||
@@ -86,7 +86,7 @@ public class ClientLoanAccountLockIntegrationTest {
|
||||
|
||||
loanAccountLockHelper.placeSoftLockOnLoanAccount(loanID, "LOAN_INLINE_COB_PROCESSING", "Sample error");
|
||||
|
||||
GetLoanAccountLockResponse getLoanAccountLockResponse = clientHelper.retrieveLockedAccounts(0, 1000);
|
||||
LoanAccountLockResponseDTO getLoanAccountLockResponse = clientHelper.retrieveLockedAccounts(0, 1000);
|
||||
Assertions.assertTrue(getLoanAccountLockResponse.getContent().size() > 0);
|
||||
Assertions.assertTrue(getLoanAccountLockResponse.getContent().stream()
|
||||
.anyMatch(loanAccountLock -> loanAccountLock.getLoanId().equals(Long.valueOf(loanID))));
|
||||
|
||||
+2
-2
@@ -46,8 +46,8 @@ import org.apache.fineract.client.models.GetClientsClientIdAccountsResponse;
|
||||
import org.apache.fineract.client.models.GetClientsClientIdResponse;
|
||||
import org.apache.fineract.client.models.GetClientsClientIdTransactionsResponse;
|
||||
import org.apache.fineract.client.models.GetClientsClientIdTransactionsTransactionIdResponse;
|
||||
import org.apache.fineract.client.models.GetLoanAccountLockResponse;
|
||||
import org.apache.fineract.client.models.GetObligeeData;
|
||||
import org.apache.fineract.client.models.LoanAccountLockResponseDTO;
|
||||
import org.apache.fineract.client.models.PageClientSearchData;
|
||||
import org.apache.fineract.client.models.PagedRequestClientTextSearch;
|
||||
import org.apache.fineract.client.models.PostClientClientIdAddressesRequest;
|
||||
@@ -1215,7 +1215,7 @@ public class ClientHelper {
|
||||
.activationDate(DEFAULT_DATE);
|
||||
}
|
||||
|
||||
public GetLoanAccountLockResponse retrieveLockedAccounts(int page, int limit) {
|
||||
public LoanAccountLockResponseDTO retrieveLockedAccounts(int page, int limit) {
|
||||
return Calls.ok(FineractClientHelper.getFineractClient().loanAccountLockApi.retrieveLockedAccounts(page, limit));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user