This is an automated email from the ASF dual-hosted git repository.
vorburger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new ec9513c FINERACT-821 Added and Enforced LocalVariableName Checkstyle
ec9513c is described below
commit ec9513c3c798d36eb1b97a068cbcace3d43326a4
Author: Manthan Surkar <[email protected]>
AuthorDate: Tue Jul 14 04:58:11 2020 +0530
FINERACT-821 Added and Enforced LocalVariableName Checkstyle
---
fineract-provider/config/checkstyle/checkstyle.xml | 14 +-
.../AccountingScenarioIntegrationTest.java | 14 +-
.../ClientLoanIntegrationTest.java | 44 +++---
.../ClientSavingsIntegrationTest.java | 52 +++---
.../integrationtests/FixedDepositTest.java | 8 +-
.../integrationtests/RecurringDepositTest.java | 176 ++++++++++-----------
.../integrationtests/common/ImageHelper.java | 10 +-
.../common/SchedulerJobHelper.java | 8 +-
.../loanaccount/guarantor/GuarantorTest.java | 94 +++++------
.../core/boot/WebFrontEndConfiguration.java | 4 +-
10 files changed, 212 insertions(+), 212 deletions(-)
diff --git a/fineract-provider/config/checkstyle/checkstyle.xml
b/fineract-provider/config/checkstyle/checkstyle.xml
index 3c5f03c..23a3ad6 100644
--- a/fineract-provider/config/checkstyle/checkstyle.xml
+++ b/fineract-provider/config/checkstyle/checkstyle.xml
@@ -185,6 +185,13 @@
</module>
<module name="ParenPad" />
<module name="ModifierOrder"/>
+ <module name="LocalVariableName">
+ <property name="tokens" value="VARIABLE_DEF"/>
+ <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$|[a-z]"/>
+ <property name="allowOneCharVarInForLoop" value="true"/>
+ <message key="name.invalidPattern"
+ value="Local variable name ''{0}'' must match pattern ''{1}''."/>
+ </module>
<!-- TODO Enable many more checks (go about this one by one, step by step,
raise separate PRs fixing and then enforcing):
<module name="HiddenField">
@@ -227,13 +234,6 @@
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
- <module name="LocalVariableName">
- <property name="tokens" value="VARIABLE_DEF"/>
- <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
- <property name="allowOneCharVarInForLoop" value="true"/>
- <message key="name.invalidPattern"
- value="Local variable name ''{0}'' must match pattern ''{1}''."/>
- </module>
<module name="ConstantName" />
diff --git
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/AccountingScenarioIntegrationTest.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/AccountingScenarioIntegrationTest.java
index a0adb08..4971736 100644
---
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/AccountingScenarioIntegrationTest.java
+++
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/AccountingScenarioIntegrationTest.java
@@ -802,10 +802,10 @@ public class AccountingScenarioIntegrationTest {
float totalInterest = (float)
loanSchedule.get(1).get("interestOriginalDue");
DecimalFormat numberFormat = new DecimalFormat("#.00", new
DecimalFormatSymbols(Locale.US));
- float INTEREST_4_DAYS = totalInterest / totalDaysInPeriod * 4;
- INTEREST_4_DAYS = Float.valueOf(numberFormat.format(INTEREST_4_DAYS));
+ float interest4Days = totalInterest / totalDaysInPeriod * 4;
+ interest4Days = Float.valueOf(numberFormat.format(interest4Days));
-
this.loanTransactionHelper.checkAccrualTransactionForRepayment(getDateAsLocalDate(currentDate),
INTEREST_4_DAYS, FEE_PORTION,
+
this.loanTransactionHelper.checkAccrualTransactionForRepayment(getDateAsLocalDate(currentDate),
interest4Days, FEE_PORTION,
PENALTY_PORTION, loanID);
}
@@ -906,15 +906,15 @@ public class AccountingScenarioIntegrationTest {
float totalInterest = (float)
loanSchedule.get(1).get("interestOriginalDue");
DecimalFormat numberFormat = new DecimalFormat("#.00", new
DecimalFormatSymbols(Locale.US));
- float INTEREST_3_DAYS = totalInterest / totalDaysInPeriod * 3;
- INTEREST_3_DAYS = Float.valueOf(numberFormat.format(INTEREST_3_DAYS));
-
this.loanTransactionHelper.checkAccrualTransactionForRepayment(getDateAsLocalDate(runOndate),
INTEREST_3_DAYS, FEE_PORTION,
+ float interest3Days = totalInterest / totalDaysInPeriod * 3;
+ interest3Days = Float.valueOf(numberFormat.format(interest3Days));
+
this.loanTransactionHelper.checkAccrualTransactionForRepayment(getDateAsLocalDate(runOndate),
interest3Days, FEE_PORTION,
PENALTY_PORTION, loanID);
runOndate = dateFormat.format(todayDate.getTime());
this.periodicAccrualAccountingHelper.runPeriodicAccrualAccounting(runOndate);
- float interestPerDay = (totalInterest / totalDaysInPeriod * 4) -
INTEREST_3_DAYS;
+ float interestPerDay = (totalInterest / totalDaysInPeriod * 4) -
interest3Days;
interestPerDay = Float.valueOf(numberFormat.format(interestPerDay));
this.loanTransactionHelper.checkAccrualTransactionForRepayment(getDateAsLocalDate(runOndate),
interestPerDay, NEXT_FEE_PORTION,
NEXT_PENALTY_PORTION, loanID);
diff --git
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/ClientLoanIntegrationTest.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/ClientLoanIntegrationTest.java
index fb10358..ae8dce1 100644
---
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/ClientLoanIntegrationTest.java
+++
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/ClientLoanIntegrationTest.java
@@ -3195,8 +3195,8 @@ public class ClientLoanIntegrationTest {
String prepayAmount = String.valueOf(prepayDetail.get("amount"));
validateNumberForEqualWithMsg("verify pre-close amount", "3551.93",
prepayAmount);
todaysDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
Float.valueOf(prepayAmount), loanID);
+ final String loanRepaymentDate =
dateFormat.format(todaysDate.getTime());
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
Float.valueOf(prepayAmount), loanID);
loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);
}
@@ -3289,8 +3289,8 @@ public class ClientLoanIntegrationTest {
String prepayAmount = String.valueOf(prepayDetail.get("amount"));
validateNumberForEqualWithMsg("verify pre-close amount",
preCloseAmount, prepayAmount);
todaysDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
Float.valueOf(prepayAmount), loanID);
+ final String loanRepaymentDate =
dateFormat.format(todaysDate.getTime());
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
Float.valueOf(prepayAmount), loanID);
loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);
}
@@ -3385,8 +3385,8 @@ public class ClientLoanIntegrationTest {
HashMap prepayDetail =
this.loanTransactionHelper.getPrepayAmount(this.requestSpec, this.responseSpec,
loanID);
String prepayAmount = String.valueOf(prepayDetail.get("amount"));
todaysDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
Float.valueOf(prepayAmount), loanID);
+ final String loanRepaymentDate =
dateFormat.format(todaysDate.getTime());
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
Float.valueOf(prepayAmount), loanID);
loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);
}
@@ -3496,8 +3496,8 @@ public class ClientLoanIntegrationTest {
HashMap prepayDetail =
this.loanTransactionHelper.getPrepayAmount(this.requestSpec, this.responseSpec,
loanID);
String prepayAmount = String.valueOf(prepayDetail.get("amount"));
todaysDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
Float.valueOf(prepayAmount), loanID);
+ final String loanRepaymentDate =
dateFormat.format(todaysDate.getTime());
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
Float.valueOf(prepayAmount), loanID);
loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);
@@ -3613,8 +3613,8 @@ public class ClientLoanIntegrationTest {
HashMap prepayDetail =
this.loanTransactionHelper.getPrepayAmount(this.requestSpec, this.responseSpec,
loanID);
String prepayAmount = String.valueOf(prepayDetail.get("amount"));
todaysDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
Float.valueOf(prepayAmount), loanID);
+ final String loanRepaymentDate =
dateFormat.format(todaysDate.getTime());
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
Float.valueOf(prepayAmount), loanID);
loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);
@@ -3731,8 +3731,8 @@ public class ClientLoanIntegrationTest {
String prepayAmount = String.valueOf(prepayDetail.get("amount"));
validateNumberForEqualWithMsg("verify pre-close amount",
preCloseAmount, prepayAmount);
todaysDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
Float.valueOf(prepayAmount), loanID);
+ final String loanRepaymentDate =
dateFormat.format(todaysDate.getTime());
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
Float.valueOf(prepayAmount), loanID);
loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);
}
@@ -3946,8 +3946,8 @@ public class ClientLoanIntegrationTest {
HashMap prepayDetail =
this.loanTransactionHelper.getPrepayAmount(this.requestSpec, this.responseSpec,
loanID);
String prepayAmount = String.valueOf(prepayDetail.get("amount"));
todaysDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
Float.valueOf(prepayAmount), loanID);
+ final String loanRepaymentDate =
dateFormat.format(todaysDate.getTime());
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
Float.valueOf(prepayAmount), loanID);
loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);
@@ -4189,8 +4189,8 @@ public class ClientLoanIntegrationTest {
String prepayAmount = String.valueOf(prepayDetail.get("amount"));
validateNumberForEqualWithMsg("verify pre-close amount",
preCloseAmount, prepayAmount);
todaysDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
Float.valueOf(prepayAmount), loanID);
+ final String loanRepaymentDate =
dateFormat.format(todaysDate.getTime());
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
Float.valueOf(prepayAmount), loanID);
loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);
}
@@ -4843,7 +4843,7 @@ public class ClientLoanIntegrationTest {
// refund 20 means paid: principal 1980, interest 240, fees 50, penalty
// 0
- Float TRANSFER_AMOUNT = 20f;
+ Float transferAmountValue = 20f;
// FINERACT-885: As loan may not have started exactly four months ago,
// make final payment today and not four months from start (as that
may be in the future)
@@ -4854,13 +4854,13 @@ public class ClientLoanIntegrationTest {
final String TO_SAVINGS_ACCOUNT_TYPE = "2";
this.accountTransferHelper.refundLoanByTransfer(now, clientID, loanID,
clientID, savingsId, FROM_LOAN_ACCOUNT_TYPE,
- TO_SAVINGS_ACCOUNT_TYPE, TRANSFER_AMOUNT.toString());
+ TO_SAVINGS_ACCOUNT_TYPE, transferAmountValue.toString());
Float toSavingsBalance = Float.valueOf(MINIMUM_OPENING_BALANCE);
HashMap toSavingsSummaryAfter =
this.savingsAccountHelper.getSavingsSummary(savingsId);
- toSavingsBalance += TRANSFER_AMOUNT;
+ toSavingsBalance += transferAmountValue;
// Verifying toSavings Account Balance after Account Transfer
assertEquals(toSavingsBalance,
toSavingsSummaryAfter.get("accountBalance"),
@@ -4884,14 +4884,14 @@ public class ClientLoanIntegrationTest {
// refund 2000 means paid: principal 0, interest 220, fees 50, penalty 0
// final String now = Utils.convertDate(fourMonthsfromNowCalendar);
- TRANSFER_AMOUNT = 2000f;
+ transferAmountValue = 2000f;
this.accountTransferHelper.refundLoanByTransfer(now, clientID, loanID,
clientID, savingsId, FROM_LOAN_ACCOUNT_TYPE,
- TO_SAVINGS_ACCOUNT_TYPE, TRANSFER_AMOUNT.toString());
+ TO_SAVINGS_ACCOUNT_TYPE, transferAmountValue.toString());
toSavingsSummaryAfter =
this.savingsAccountHelper.getSavingsSummary(savingsId);
- toSavingsBalance += TRANSFER_AMOUNT;
+ toSavingsBalance += transferAmountValue;
// Verifying toSavings Account Balance after Account Transfer
assertEquals(toSavingsBalance,
toSavingsSummaryAfter.get("accountBalance"),
diff --git
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/ClientSavingsIntegrationTest.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/ClientSavingsIntegrationTest.java
index 93d074e..60d8dd5 100644
---
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/ClientSavingsIntegrationTest.java
+++
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/ClientSavingsIntegrationTest.java
@@ -866,7 +866,7 @@ public class ClientSavingsIntegrationTest {
// yyyy",Locale.US);
Calendar transactionDate = Calendar.getInstance();
transactionDate.set(Calendar.DAY_OF_MONTH, 2);
- String TRANSACTION_DATE = dateFormat.format(transactionDate.getTime());
+ String transactionDateValue =
dateFormat.format(transactionDate.getTime());
/***
* Perform Deposit transaction on last day of month and verify account
balance.
@@ -907,7 +907,7 @@ public class ClientSavingsIntegrationTest {
accountDetailsPostInterestPosted =
Float.valueOf(decimalFormat.format(accountDetailsPostInterestPosted));
assertEquals(interestPosted, accountDetailsPostInterestPosted,
"Verifying interest posted");
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
HashMap accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountDetails.get("summary");
Float accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -931,9 +931,9 @@ public class ClientSavingsIntegrationTest {
LOG.info("-----Post Interest As on Successfully Worked----------");
transactionDate.set(Calendar.DAY_OF_MONTH, 3);
- TRANSACTION_DATE = dateFormat.format(transactionDate.getTime());
+ transactionDateValue = dateFormat.format(transactionDate.getTime());
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountDetails.get("summary");
accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -961,9 +961,9 @@ public class ClientSavingsIntegrationTest {
Calendar transactionCalendarDateFormat = Calendar.getInstance();
transactionCalendarDateFormat.add(Calendar.DAY_OF_MONTH, 0);
transactionDate.set(Calendar.DAY_OF_MONTH, 22);
- TRANSACTION_DATE = dateFormat.format(transactionDate.getTime());
+ transactionDateValue = dateFormat.format(transactionDate.getTime());
if (Calendar.DAY_OF_MONTH >= 22) {
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountTransactionDetails.get("summary");
accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -989,11 +989,11 @@ public class ClientSavingsIntegrationTest {
DateFormat lastTransactionDateFormat = new SimpleDateFormat("dd MMMM
yyyy", Locale.US);
Calendar postedLastDate = Calendar.getInstance();
int numberOfDateOfMonth =
postedLastDate.getActualMaximum(Calendar.DAY_OF_MONTH);
- TRANSACTION_DATE =
lastTransactionDateFormat.format(transactionDate.getTime());
+ transactionDateValue =
lastTransactionDateFormat.format(transactionDate.getTime());
if (Calendar.DAY_OF_MONTH == numberOfDateOfMonth) {
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountTransactionDetails.get("summary");
accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -1018,8 +1018,8 @@ public class ClientSavingsIntegrationTest {
}
transactionDate.set(Calendar.DAY_OF_MONTH, 1);
- TRANSACTION_DATE = dateFormat.format(transactionDate.getTime());
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ transactionDateValue = dateFormat.format(transactionDate.getTime());
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountTransactionDetails.get("summary");
accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -1117,7 +1117,7 @@ public class ClientSavingsIntegrationTest {
// yyyy", Locale.US);
Calendar transactionDate = Calendar.getInstance();
transactionDate.set(Calendar.DAY_OF_MONTH, 2);
- String TRANSACTION_DATE = dateFormat.format(transactionDate.getTime());
+ String transactionDateValue =
dateFormat.format(transactionDate.getTime());
/***
* Perform withdraw transaction, verify account balance(account
balance will go to negative as no deposits are
@@ -1169,7 +1169,7 @@ public class ClientSavingsIntegrationTest {
accountDetailsPostInterestPosted =
Float.valueOf(decimalFormat.format(accountDetailsPostInterestPosted));
assertEquals(interestPosted, accountDetailsPostInterestPosted,
"Verifying interest posted");
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
HashMap accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountDetails.get("summary");
Float accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -1193,9 +1193,9 @@ public class ClientSavingsIntegrationTest {
LOG.info("-----Post Interest As on Successfully Worked----------");
transactionDate.set(Calendar.DAY_OF_MONTH, 3);
- TRANSACTION_DATE = dateFormat.format(transactionDate.getTime());
+ transactionDateValue = dateFormat.format(transactionDate.getTime());
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountDetails.get("summary");
accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -1223,9 +1223,9 @@ public class ClientSavingsIntegrationTest {
Calendar transactionCalendarDateFormat = Calendar.getInstance();
transactionCalendarDateFormat.add(Calendar.DAY_OF_MONTH, 0);
transactionDate.set(Calendar.DAY_OF_MONTH, 22);
- TRANSACTION_DATE = dateFormat.format(transactionDate.getTime());
+ transactionDateValue = dateFormat.format(transactionDate.getTime());
if (Calendar.DAY_OF_MONTH >= 22) {
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountTransactionDetails.get("summary");
accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -1251,11 +1251,11 @@ public class ClientSavingsIntegrationTest {
DateFormat lastTransactionDateFormat = new SimpleDateFormat("dd MMMM
yyyy", Locale.US);
Calendar postedLastDate = Calendar.getInstance();
int numberOfDateOfMonth =
postedLastDate.getActualMaximum(Calendar.DAY_OF_MONTH);
- TRANSACTION_DATE =
lastTransactionDateFormat.format(transactionDate.getTime());
+ transactionDateValue =
lastTransactionDateFormat.format(transactionDate.getTime());
if (Calendar.DAY_OF_MONTH == numberOfDateOfMonth) {
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountTransactionDetails.get("summary");
accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -1280,8 +1280,8 @@ public class ClientSavingsIntegrationTest {
}
transactionDate.set(Calendar.DAY_OF_MONTH, 1);
- TRANSACTION_DATE = dateFormat.format(transactionDate.getTime());
- this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
TRANSACTION_DATE);
+ transactionDateValue = dateFormat.format(transactionDate.getTime());
+ this.savingsAccountHelper.postInterestAsOnSavings(savingsId,
transactionDateValue);
accountTransactionDetails =
this.savingsAccountHelper.getSavingsDetails(savingsId);
summary = (HashMap) accountTransactionDetails.get("summary");
accountDetailsPostInterest =
Float.valueOf(summary.get("totalInterestPosted").toString());
@@ -1790,9 +1790,9 @@ public class ClientSavingsIntegrationTest {
final DateTimeFormatter formatter = DateTimeFormat.forPattern("dd MMMM
yyyy");
LocalDate transactionDate = new LocalDate();
for (int i = 0; i < 4; i++) {
- String TRANSACTION_DATE = formatter.print(transactionDate);
+ String transactionDateValue = formatter.print(transactionDate);
Integer depositTransactionId = (Integer)
this.savingsAccountHelper.depositToSavingsAccount(savingsList.get(i),
DEPOSIT_AMOUNT,
- TRANSACTION_DATE, CommonConstants.RESPONSE_RESOURCE_ID);
+ transactionDateValue,
CommonConstants.RESPONSE_RESOURCE_ID);
transactionDate = transactionDate.minusDays(30);
}
@@ -1821,9 +1821,9 @@ public class ClientSavingsIntegrationTest {
balance -= chargeAmt;
assertEquals(balance, summary.get("accountBalance"), "Verifying
account Balance");
- String TRANSACTION_DATE = formatter.print(new LocalDate());
+ String transactionDateValue = formatter.print(new LocalDate());
Integer depositTransactionId = (Integer)
this.savingsAccountHelper.depositToSavingsAccount(savingsList.get(1),
DEPOSIT_AMOUNT,
- TRANSACTION_DATE, CommonConstants.RESPONSE_RESOURCE_ID);
+ transactionDateValue, CommonConstants.RESPONSE_RESOURCE_ID);
savingsStatusHashMap =
SavingsStatusChecker.getStatusOfSavings(this.requestSpec, this.responseSpec,
savingsList.get(1));
SavingsStatusChecker.verifySavingsIsActive(savingsStatusHashMap);
savingsStatusHashMap =
SavingsStatusChecker.getSubStatusOfSavings(this.requestSpec, this.responseSpec,
savingsList.get(1));
@@ -1840,9 +1840,9 @@ public class ClientSavingsIntegrationTest {
balance -= chargeAmt;
assertEquals(balance, summary.get("accountBalance"), "Verifying
account Balance");
- TRANSACTION_DATE = formatter.print(new LocalDate());
+ transactionDateValue = formatter.print(new LocalDate());
depositTransactionId = (Integer)
this.savingsAccountHelper.depositToSavingsAccount(savingsList.get(2),
DEPOSIT_AMOUNT,
- TRANSACTION_DATE, CommonConstants.RESPONSE_RESOURCE_ID);
+ transactionDateValue, CommonConstants.RESPONSE_RESOURCE_ID);
savingsStatusHashMap =
SavingsStatusChecker.getStatusOfSavings(this.requestSpec, this.responseSpec,
savingsList.get(2));
SavingsStatusChecker.verifySavingsIsActive(savingsStatusHashMap);
savingsStatusHashMap =
SavingsStatusChecker.getSubStatusOfSavings(this.requestSpec, this.responseSpec,
savingsList.get(2));
diff --git
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/FixedDepositTest.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/FixedDepositTest.java
index 583f95a..e903efb 100644
---
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/FixedDepositTest.java
+++
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/FixedDepositTest.java
@@ -977,7 +977,7 @@ public class FixedDepositTest {
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.MONTH, -1);
monthDayFormat.format(todaysDate.getTime());
- String SUBMITTED_ON_DATE = dateFormat.format(todaysDate.getTime());
+ String submittedOnDate = dateFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
Assertions.assertNotNull(clientId);
@@ -990,13 +990,13 @@ public class FixedDepositTest {
FixedDepositProductHelper.retrieveFixedDepositProductById(this.requestSpec,
this.responseSpec, fixedDepositProductId.toString());
Integer fixedDepositAccountId =
applyForFixedDepositApplication(clientId.toString(),
fixedDepositProductId.toString(),
- SUBMITTED_ON_DATE, WHOLE_TERM);
+ submittedOnDate, WHOLE_TERM);
Assertions.assertNotNull(fixedDepositAccountId);
todaysDate.add(Calendar.DATE, -1);
- SUBMITTED_ON_DATE = dateFormat.format(todaysDate.getTime());
+ submittedOnDate = dateFormat.format(todaysDate.getTime());
HashMap modificationsHashMap =
this.fixedDepositAccountHelper.updateFixedDepositAccount(clientId.toString(),
- fixedDepositProductId.toString(),
fixedDepositAccountId.toString(), VALID_FROM, VALID_TO, WHOLE_TERM,
SUBMITTED_ON_DATE);
+ fixedDepositProductId.toString(),
fixedDepositAccountId.toString(), VALID_FROM, VALID_TO, WHOLE_TERM,
submittedOnDate);
Assertions.assertTrue(modificationsHashMap.containsKey("submittedOnDate"));
}
diff --git
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/RecurringDepositTest.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/RecurringDepositTest.java
index 3f579ea..f5238c1 100644
---
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/RecurringDepositTest.java
+++
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/RecurringDepositTest.java
@@ -155,7 +155,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer currentDate =
Integer.valueOf(currentDateFormat.format(todaysDate.getTime()));
@@ -183,7 +183,7 @@ public class RecurringDepositTest {
* Apply for RD account with created product and verify status
*/
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -212,12 +212,12 @@ public class RecurringDepositTest {
* Perform Deposit transaction and verify journal entries are posted
for the transaction
*/
Integer depositTransactionId =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- depositAmount, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ depositAmount, expectedFirstDepositOnDate);
Assertions.assertNotNull(depositTransactionId);
- this.journalEntryHelper.checkJournalEntryForAssetAccount(assetAccount,
EXPECTED_FIRST_DEPOSIT_ON_DATE,
+ this.journalEntryHelper.checkJournalEntryForAssetAccount(assetAccount,
expectedFirstDepositOnDate,
new JournalEntry(depositAmount,
JournalEntry.TransactionType.DEBIT));
-
this.journalEntryHelper.checkJournalEntryForLiabilityAccount(liabilityAccount,
EXPECTED_FIRST_DEPOSIT_ON_DATE,
+
this.journalEntryHelper.checkJournalEntryForLiabilityAccount(liabilityAccount,
expectedFirstDepositOnDate,
new JournalEntry(depositAmount,
JournalEntry.TransactionType.CREDIT));
/***
@@ -305,7 +305,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer currentDate =
Integer.valueOf(currentDateFormat.format(todaysDate.getTime()));
@@ -361,7 +361,7 @@ public class RecurringDepositTest {
* Apply for RD account with created product and verify status
*/
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -390,12 +390,12 @@ public class RecurringDepositTest {
* Perform Deposit transaction and verify journal entries are posted
for the transaction
*/
Integer depositTransactionId =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- depositAmount, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ depositAmount, expectedFirstDepositOnDate);
Assertions.assertNotNull(depositTransactionId);
- this.journalEntryHelper.checkJournalEntryForAssetAccount(assetAccount,
EXPECTED_FIRST_DEPOSIT_ON_DATE,
+ this.journalEntryHelper.checkJournalEntryForAssetAccount(assetAccount,
expectedFirstDepositOnDate,
new JournalEntry(depositAmount,
JournalEntry.TransactionType.DEBIT));
-
this.journalEntryHelper.checkJournalEntryForLiabilityAccount(liabilityAccount,
EXPECTED_FIRST_DEPOSIT_ON_DATE,
+
this.journalEntryHelper.checkJournalEntryForLiabilityAccount(liabilityAccount,
expectedFirstDepositOnDate,
new JournalEntry(depositAmount,
JournalEntry.TransactionType.CREDIT));
/***
@@ -507,7 +507,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer currentDate =
Integer.valueOf(currentDateFormat.format(todaysDate.getTime()));
@@ -564,7 +564,7 @@ public class RecurringDepositTest {
* Apply for RD account with created product and verify status
*/
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -593,12 +593,12 @@ public class RecurringDepositTest {
* Perform Deposit transaction and verify journal entries are posted
for the transaction
*/
Integer depositTransactionId =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- depositAmount, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ depositAmount, expectedFirstDepositOnDate);
Assertions.assertNotNull(depositTransactionId);
- this.journalEntryHelper.checkJournalEntryForAssetAccount(assetAccount,
EXPECTED_FIRST_DEPOSIT_ON_DATE,
+ this.journalEntryHelper.checkJournalEntryForAssetAccount(assetAccount,
expectedFirstDepositOnDate,
new JournalEntry(depositAmount,
JournalEntry.TransactionType.DEBIT));
-
this.journalEntryHelper.checkJournalEntryForLiabilityAccount(liabilityAccount,
EXPECTED_FIRST_DEPOSIT_ON_DATE,
+
this.journalEntryHelper.checkJournalEntryForLiabilityAccount(liabilityAccount,
expectedFirstDepositOnDate,
new JournalEntry(depositAmount,
JournalEntry.TransactionType.CREDIT));
/***
@@ -716,7 +716,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer currentDate =
Integer.valueOf(currentDateFormat.format(todaysDate.getTime()));
@@ -775,7 +775,7 @@ public class RecurringDepositTest {
* Apply for RD account with created product and verify status
*/
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -878,7 +878,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer currentDate =
Integer.valueOf(currentDateFormat.format(todaysDate.getTime()));
@@ -911,7 +911,7 @@ public class RecurringDepositTest {
* Apply for RD account with created product and verify status
*/
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -940,12 +940,12 @@ public class RecurringDepositTest {
* Perform Deposit transaction and verify journal entries are posted
for the transaction
*/
Integer depositTransactionId =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(depositTransactionId);
- this.journalEntryHelper.checkJournalEntryForAssetAccount(assetAccount,
EXPECTED_FIRST_DEPOSIT_ON_DATE,
+ this.journalEntryHelper.checkJournalEntryForAssetAccount(assetAccount,
expectedFirstDepositOnDate,
new JournalEntry(depositAmount,
JournalEntry.TransactionType.DEBIT));
-
this.journalEntryHelper.checkJournalEntryForLiabilityAccount(liabilityAccount,
EXPECTED_FIRST_DEPOSIT_ON_DATE,
+
this.journalEntryHelper.checkJournalEntryForLiabilityAccount(liabilityAccount,
expectedFirstDepositOnDate,
new JournalEntry(depositAmount,
JournalEntry.TransactionType.CREDIT));
/***
@@ -1007,7 +1007,7 @@ public class RecurringDepositTest {
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.MONTH, -1);
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -1018,7 +1018,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
todaysDate.add(Calendar.DATE, -1);
@@ -1051,7 +1051,7 @@ public class RecurringDepositTest {
todaysDate.add(Calendar.MONTH, -1);
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -1062,7 +1062,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1099,7 +1099,7 @@ public class RecurringDepositTest {
todaysDate.add(Calendar.MONTH, -1);
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String REJECTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -1110,7 +1110,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1145,7 +1145,7 @@ public class RecurringDepositTest {
todaysDate.add(Calendar.MONTH, -1);
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String WITHDRAWN_ON_DATE =
dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -1156,7 +1156,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1189,7 +1189,7 @@ public class RecurringDepositTest {
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.MONTH, -1);
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -1200,7 +1200,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1243,7 +1243,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
todaysDate.add(Calendar.MONTH, 1);
final String DEPOSIT_DATE = dateFormat.format(todaysDate.getTime());
@@ -1266,7 +1266,7 @@ public class RecurringDepositTest {
* Apply for RD account with created product and verify status
*/
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1367,7 +1367,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -1378,7 +1378,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1442,7 +1442,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -1453,13 +1453,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_360, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, MONTHLY, MONTHLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -1520,7 +1520,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -1531,7 +1531,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1555,7 +1555,7 @@ public class RecurringDepositTest {
.getInterestRateChartSlabsByProductId(this.requestSpec,
this.responseSpec, recurringDepositProductId);
Integer depositTransactionId =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(depositTransactionId);
HashMap recurringDepositSummary =
this.recurringDepositAccountHelper.getRecurringDepositSummary(recurringDepositAccountId);
@@ -1617,7 +1617,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
todaysDate.add(Calendar.MONTH, 1);
final String CLOSED_ON_DATE = dateFormat.format(todaysDate.getTime());
@@ -1635,7 +1635,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1661,7 +1661,7 @@ public class RecurringDepositTest {
.getInterestRateChartSlabsByProductId(this.requestSpec,
this.responseSpec, recurringDepositProductId);
Integer depositTransactionId =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(depositTransactionId);
HashMap recurringDepositSummary =
this.recurringDepositAccountHelper.getRecurringDepositSummary(recurringDepositAccountId);
@@ -1684,9 +1684,9 @@ public class RecurringDepositTest {
calendar.add(Calendar.DATE, daysInMonth);
LOG.info("{}", monthDayFormat.format(calendar.getTime()));
- EXPECTED_FIRST_DEPOSIT_ON_DATE = dateFormat.format(calendar.getTime());
+ expectedFirstDepositOnDate = dateFormat.format(calendar.getTime());
Integer transactionIdForDeposit =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(transactionIdForDeposit);
currentDate = currentDate - 1;
@@ -1741,7 +1741,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
todaysDate.add(Calendar.MONTH, 1);
final String CLOSED_ON_DATE = dateFormat.format(todaysDate.getTime());
@@ -1759,13 +1759,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_360, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, MONTHLY, MONTHLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -1790,7 +1790,7 @@ public class RecurringDepositTest {
.getInterestRateChartSlabsByProductId(this.requestSpec,
this.responseSpec, recurringDepositProductId);
Integer depositTransactionId =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(depositTransactionId);
HashMap recurringDepositSummary =
this.recurringDepositAccountHelper.getRecurringDepositSummary(recurringDepositAccountId);
@@ -1813,9 +1813,9 @@ public class RecurringDepositTest {
calendar.add(Calendar.DATE, daysInMonth);
LOG.info("{}", monthDayFormat.format(calendar.getTime()));
- EXPECTED_FIRST_DEPOSIT_ON_DATE = dateFormat.format(calendar.getTime());
+ expectedFirstDepositOnDate = dateFormat.format(calendar.getTime());
Integer transactionIdForDeposit =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(transactionIdForDeposit);
currentDate = currentDate - 1;
@@ -1871,7 +1871,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
todaysDate.add(Calendar.MONTH, 1);
todaysDate.add(Calendar.DAY_OF_MONTH, 1);
@@ -1890,7 +1890,7 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE,
TILL_PREMATURE_WITHDRAWAL, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE,
TILL_PREMATURE_WITHDRAWAL, expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
@@ -1925,7 +1925,7 @@ public class RecurringDepositTest {
Integer depositedPeriod = Months.monthsBetween(start, end).getMonths();
Integer depositTransactionId =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(depositTransactionId);
HashMap recurringDepositSummary =
this.recurringDepositAccountHelper.getRecurringDepositSummary(recurringDepositAccountId);
@@ -1949,9 +1949,9 @@ public class RecurringDepositTest {
calendar.add(Calendar.DATE, daysInMonth);
LOG.info("{}", monthDayFormat.format(calendar.getTime()));
- EXPECTED_FIRST_DEPOSIT_ON_DATE = dateFormat.format(calendar.getTime());
+ expectedFirstDepositOnDate = dateFormat.format(calendar.getTime());
Integer transactionIdForDeposit =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(transactionIdForDeposit);
currentDate = currentDate - 1;
@@ -2007,7 +2007,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
todaysDate.add(Calendar.MONTH, 1);
todaysDate.add(Calendar.DAY_OF_MONTH, 1);
@@ -2026,13 +2026,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE,
TILL_PREMATURE_WITHDRAWAL, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE,
TILL_PREMATURE_WITHDRAWAL, expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_360, TILL_PREMATURE_WITHDRAWAL,
INTEREST_CALCULATION_USING_DAILY_BALANCE, MONTHLY, MONTHLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -2066,7 +2066,7 @@ public class RecurringDepositTest {
Integer depositedPeriod = Months.monthsBetween(start, end).getMonths();
Integer transactionIdForDeposit =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(transactionIdForDeposit);
HashMap recurringDepositSummary =
this.recurringDepositAccountHelper.getRecurringDepositSummary(recurringDepositAccountId);
@@ -2090,9 +2090,9 @@ public class RecurringDepositTest {
calendar.add(Calendar.DATE, daysInMonth);
LOG.info("{}", monthDayFormat.format(calendar.getTime()));
- EXPECTED_FIRST_DEPOSIT_ON_DATE = dateFormat.format(calendar.getTime());
+ expectedFirstDepositOnDate = dateFormat.format(calendar.getTime());
Integer newTransactionIdForDeposit =
this.recurringDepositAccountHelper.depositToRecurringDepositAccount(recurringDepositAccountId,
- DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ DEPOSIT_AMOUNT, expectedFirstDepositOnDate);
Assertions.assertNotNull(newTransactionIdForDeposit);
currentDate = currentDate - 1;
@@ -2146,7 +2146,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -2156,13 +2156,13 @@ public class RecurringDepositTest {
Integer recurringDepositProductId =
createRecurringDepositProduct(VALID_FROM, VALID_TO, accountingRule);
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_365, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, DAILY, MONTHLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -2225,7 +2225,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -2236,13 +2236,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_360, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, DAILY, MONTHLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -2313,7 +2313,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -2324,13 +2324,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_365, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, BI_ANNUALLY, BI_ANNUALLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -2403,7 +2403,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -2414,13 +2414,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_360, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, BI_ANNUALLY, BI_ANNUALLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -2492,7 +2492,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -2503,13 +2503,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_365, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, DAILY, ANNUALLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -2582,7 +2582,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -2593,13 +2593,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_360, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, DAILY, ANNUALLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -2673,7 +2673,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -2684,13 +2684,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_365, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, QUARTERLY, QUARTERLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
@@ -2763,7 +2763,7 @@ public class RecurringDepositTest {
final String SUBMITTED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String APPROVED_ON_DATE =
dateFormat.format(todaysDate.getTime());
final String ACTIVATION_DATE = dateFormat.format(todaysDate.getTime());
- final String EXPECTED_FIRST_DEPOSIT_ON_DATE =
dateFormat.format(todaysDate.getTime());
+ final String expectedFirstDepositOnDate =
dateFormat.format(todaysDate.getTime());
final String MONTH_DAY = monthDayFormat.format(todaysDate.getTime());
Integer clientId = ClientHelper.createClient(this.requestSpec,
this.responseSpec);
@@ -2774,13 +2774,13 @@ public class RecurringDepositTest {
Assertions.assertNotNull(recurringDepositProductId);
Integer recurringDepositAccountId =
applyForRecurringDepositApplication(clientId.toString(),
recurringDepositProductId.toString(),
- VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ VALID_FROM, VALID_TO, SUBMITTED_ON_DATE, WHOLE_TERM,
expectedFirstDepositOnDate);
Assertions.assertNotNull(recurringDepositAccountId);
HashMap modificationsHashMap =
this.recurringDepositAccountHelper.updateInterestCalculationConfigForRecurringDeposit(
clientId.toString(), recurringDepositProductId.toString(),
recurringDepositAccountId.toString(), SUBMITTED_ON_DATE,
VALID_FROM, VALID_TO, DAYS_360, WHOLE_TERM,
INTEREST_CALCULATION_USING_DAILY_BALANCE, QUARTERLY, QUARTERLY,
- EXPECTED_FIRST_DEPOSIT_ON_DATE);
+ expectedFirstDepositOnDate);
HashMap recurringDepositAccountStatusHashMap =
RecurringDepositAccountStatusChecker
.getStatusOfRecurringDepositAccount(this.requestSpec,
this.responseSpec, recurringDepositAccountId.toString());
diff --git
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/ImageHelper.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/ImageHelper.java
index 4d11241..3e4d423 100644
---
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/ImageHelper.java
+++
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/ImageHelper.java
@@ -33,21 +33,21 @@ public class ImageHelper {
public static Integer createImageForStaff(final RequestSpecification
requestSpec, final ResponseSpecification responseSpec,
Integer staffId) {
LOG.info("---------------------------------CREATING AN IMAGE FOR
STAFF---------------------------------------------");
- String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
+ final String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
return Utils.performServerPost(requestSpec, responseSpec, URL,
generateImageAsText(), "resourceId");
}
public static Integer updateImageForStaff(final RequestSpecification
requestSpec, final ResponseSpecification responseSpec,
Integer staffId) {
LOG.info("---------------------------------UPDATING AN IMAGE FOR
STAFF---------------------------------------------");
- String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
+ final String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
return Utils.performServerPut(requestSpec, responseSpec, URL,
generateImageAsText(), "resourceId");
}
public static String getStaffImageAsText(final RequestSpecification
requestSpec, final ResponseSpecification responseSpec,
Integer staffId) {
LOG.info("---------------------------------RETRIEVING STAFF
IMAGE---------------------------------------------");
- String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
+ final String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
requestSpec.header(HttpHeaders.ACCEPT, "text/plain");
return Utils.performGetTextResponse(requestSpec, responseSpec, URL);
}
@@ -55,7 +55,7 @@ public class ImageHelper {
public static byte[] getStaffImageAsBinary(final RequestSpecification
requestSpec, final ResponseSpecification responseSpec,
Integer staffId) {
LOG.info("---------------------------------RETRIEVING STAFF
IMAGE---------------------------------------------");
- String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
+ final String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
requestSpec.header(HttpHeaders.ACCEPT, "application/octet-stream");
return Utils.performGetBinaryResponse(requestSpec, responseSpec, URL);
}
@@ -63,7 +63,7 @@ public class ImageHelper {
public static Integer deleteStaffImage(final RequestSpecification
requestSpec, final ResponseSpecification responseSpec,
Integer staffId) {
LOG.info("---------------------------------RETRIEVING STAFF
IMAGE---------------------------------------------");
- String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
+ final String URL = STAFF_IMAGE_URL + staffId + IMAGES_URI + "?" +
Utils.TENANT_IDENTIFIER;
return Utils.performServerDelete(requestSpec, responseSpec, URL,
"resourceId");
}
diff --git
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/SchedulerJobHelper.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/SchedulerJobHelper.java
index 990c1ff..b10082c 100644
---
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/SchedulerJobHelper.java
+++
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/SchedulerJobHelper.java
@@ -147,8 +147,8 @@ public class SchedulerJobHelper {
* @author Michael Vorburger.ch
*/
public void executeAndAwaitJob(String jobName) {
- Duration TIMEOUT = Duration.ofSeconds(30);
- Duration PAUSE = Duration.ofMillis(500);
+ final Duration timeout = Duration.ofSeconds(30);
+ final Duration pause = Duration.ofMillis(500);
DateTimeFormatter df = DateTimeFormatter.ISO_INSTANT; // FINERACT-926
Instant beforeExecuteTime = now().truncatedTo(ChronoUnit.SECONDS);
@@ -162,7 +162,7 @@ public class SchedulerJobHelper {
// Await JobDetailData.lastRunHistory [JobDetailHistoryData]
// jobRunStartTime >= beforeExecuteTime (or timeout)
-
await().atMost(TIMEOUT).pollInterval(PAUSE).until(jobLastRunHistorySupplier(jobId),
lastRunHistory -> {
+
await().atMost(timeout).pollInterval(pause).until(jobLastRunHistorySupplier(jobId),
lastRunHistory -> {
String jobRunStartText = lastRunHistory.get("jobRunStartTime");
if (jobRunStartText == null) {
return false;
@@ -173,7 +173,7 @@ public class SchedulerJobHelper {
// Await JobDetailData.lastRunHistory [JobDetailHistoryData]
// jobRunEndTime to be both set and >= jobRunStartTime (or timeout)
- Map<String, String> finalLastRunHistory =
await().atMost(TIMEOUT).pollInterval(PAUSE).until(jobLastRunHistorySupplier(jobId),
+ Map<String, String> finalLastRunHistory =
await().atMost(timeout).pollInterval(pause).until(jobLastRunHistorySupplier(jobId),
lastRunHistory -> {
String jobRunEndText = lastRunHistory.get("jobRunEndTime");
if (jobRunEndText == null) {
diff --git
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/loanaccount/guarantor/GuarantorTest.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/loanaccount/guarantor/GuarantorTest.java
index aad4a8f..1f5af6d 100644
---
a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/loanaccount/guarantor/GuarantorTest.java
+++
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/loanaccount/guarantor/GuarantorTest.java
@@ -99,8 +99,8 @@ public class GuarantorTest {
DateFormat dateFormat = new SimpleDateFormat("dd MMMM yyyy",
Locale.US);
Calendar todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -7 * 4);
- String LOAN_DISBURSEMENT_DATE =
dateFormat.format(todaysDate.getTime());
- final Integer loanID = applyForLoanApplication(clientID,
loanProductID, LOAN_DISBURSEMENT_DATE);
+ final String loanDisbursementDate =
dateFormat.format(todaysDate.getTime());
+ final Integer loanID = applyForLoanApplication(clientID,
loanProductID, loanDisbursementDate);
Assertions.assertNotNull(loanID);
HashMap loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);
@@ -113,7 +113,7 @@ public class GuarantorTest {
Integer withoutGuaranteeAmount =
this.guarantorHelper.createGuarantor(loanID, guarantorJSON);
Assertions.assertNotNull(withoutGuaranteeAmount);
- ArrayList<HashMap> errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, null, loanID,
+ ArrayList<HashMap> errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(loanDisbursementDate, null, loanID,
CommonConstants.RESPONSE_ERROR);
assertTrue(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.self.guarantee.required"));
assertTrue(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.external.guarantee.required"));
@@ -125,7 +125,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(selfSavigsId, null);
Assertions.assertNotNull(selfGuarantee);
- errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, null, loanID,
+ errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(loanDisbursementDate, null, loanID,
CommonConstants.RESPONSE_ERROR);
assertFalse(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.self.guarantee.required"));
assertTrue(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.external.guarantee.required"));
@@ -137,7 +137,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_1, null);
Assertions.assertNotNull(externalGuarantee_1);
- errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, null, loanID,
+ errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(loanDisbursementDate, null, loanID,
CommonConstants.RESPONSE_ERROR);
assertFalse(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.self.guarantee.required"));
assertFalse(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.external.guarantee.required"));
@@ -150,7 +150,7 @@ public class GuarantorTest {
Assertions.assertNotNull(externalGuarantee_2);
LOG.info("-----------------------------------APPROVE
LOAN-----------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.approveLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);
LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);
self1_hold_funds += self1_guarantee;
@@ -168,7 +168,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_2, Float.valueOf((float)
0));
LOG.info("-----------------------------------APPROVE
LOAN-----------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.approveLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);
LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds);
@@ -176,18 +176,18 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_2, external2_hold_funds);
LOG.info("-------------------------------DISBURSE
LOAN-------------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);
// First repayment
ArrayList<HashMap> loanSchedule =
this.loanTransactionHelper.getLoanRepaymentSchedule(this.requestSpec,
this.responseSpec, loanID);
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -7 * 3);
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ String loanRepaymentDate = dateFormat.format(todaysDate.getTime());
Float totalDueForCurrentPeriod = (Float)
loanSchedule.get(1).get("totalDueForPeriod");
external1_hold_funds -= Float.valueOf((float) 827.5867);
external2_hold_funds -= Float.valueOf((float) 413.7933);
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
totalDueForCurrentPeriod, loanID);
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_1, external1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_2, external2_hold_funds);
@@ -195,11 +195,11 @@ public class GuarantorTest {
// Second repayment
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -7 * 2);
- LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ loanRepaymentDate = dateFormat.format(todaysDate.getTime());
totalDueForCurrentPeriod = (Float)
loanSchedule.get(2).get("totalDueForPeriod");
external1_hold_funds -= Float.valueOf((float) 831.4067);
external2_hold_funds -= Float.valueOf((float) 415.7033333);
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
totalDueForCurrentPeriod, loanID);
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_1, external1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_2, external2_hold_funds);
@@ -207,19 +207,19 @@ public class GuarantorTest {
// third repayment
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -7);
- LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ loanRepaymentDate = dateFormat.format(todaysDate.getTime());
totalDueForCurrentPeriod = (Float)
loanSchedule.get(3).get("totalDueForPeriod");
self1_hold_funds -= Float.valueOf((float) 741.355);
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
totalDueForCurrentPeriod, loanID);
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_1, Float.valueOf((float)
0));
verifySavingsOnHoldBalance(externalSavigsId_2, Float.valueOf((float)
0));
// forth repayment
todaysDate = Calendar.getInstance();
- LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ loanRepaymentDate = dateFormat.format(todaysDate.getTime());
totalDueForCurrentPeriod = (Float)
loanSchedule.get(3).get("totalDueForPeriod");
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
totalDueForCurrentPeriod, loanID);
verifySavingsOnHoldBalance(selfSavigsId, Float.valueOf((float) 0));
verifySavingsOnHoldBalance(externalSavigsId_1, Float.valueOf((float)
0));
verifySavingsOnHoldBalance(externalSavigsId_2, Float.valueOf((float)
0));
@@ -256,8 +256,8 @@ public class GuarantorTest {
DateFormat dateFormat = new SimpleDateFormat("dd MMMM yyyy",
Locale.US);
Calendar todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -7 * 4);
- String LOAN_DISBURSEMENT_DATE =
dateFormat.format(todaysDate.getTime());
- final Integer loanID = applyForLoanApplication(clientID,
loanProductID, LOAN_DISBURSEMENT_DATE);
+ final String loanDisbursementDate =
dateFormat.format(todaysDate.getTime());
+ final Integer loanID = applyForLoanApplication(clientID,
loanProductID, loanDisbursementDate);
Assertions.assertNotNull(loanID);
HashMap loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);
@@ -270,7 +270,7 @@ public class GuarantorTest {
Integer withoutGuaranteeAmount =
this.guarantorHelper.createGuarantor(loanID, guarantorJSON);
Assertions.assertNotNull(withoutGuaranteeAmount);
- ArrayList<HashMap> errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, null, loanID,
+ ArrayList<HashMap> errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(loanDisbursementDate, null, loanID,
CommonConstants.RESPONSE_ERROR);
assertTrue(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.self.guarantee.required"));
assertTrue(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.external.guarantee.required"));
@@ -282,7 +282,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(selfSavigsId, null);
Assertions.assertNotNull(selfGuarantee);
- errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, null, loanID,
+ errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(loanDisbursementDate, null, loanID,
CommonConstants.RESPONSE_ERROR);
assertFalse(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.self.guarantee.required"));
assertTrue(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.external.guarantee.required"));
@@ -294,7 +294,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_1, null);
Assertions.assertNotNull(externalGuarantee_1);
- errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, null, loanID,
+ errorData = (ArrayList<HashMap>)
this.loanTransactionHelper.approveLoan(loanDisbursementDate, null, loanID,
CommonConstants.RESPONSE_ERROR);
assertFalse(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.self.guarantee.required"));
assertFalse(checkForErrorCode(errorData,
"validation.msg.loan.guarantor.min.external.guarantee.required"));
@@ -307,7 +307,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_2, null);
LOG.info("-----------------------------------APPROVE
LOAN-----------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.approveLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);
LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);
self1_hold_funds += self1_guarantee;
@@ -325,7 +325,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_2, Float.valueOf((float)
0));
LOG.info("-----------------------------------APPROVE
LOAN-----------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.approveLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);
LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds);
@@ -367,18 +367,18 @@ public class GuarantorTest {
}
LOG.info("-------------------------------DISBURSE
LOAN-------------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);
// First repayment
ArrayList<HashMap> loanSchedule =
this.loanTransactionHelper.getLoanRepaymentSchedule(this.requestSpec,
this.responseSpec, loanID);
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -7 * 3);
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ String loanRepaymentDate = dateFormat.format(todaysDate.getTime());
Float totalDueForCurrentPeriod = (Float)
loanSchedule.get(1).get("totalDueForPeriod");
external1_hold_funds -= Float.valueOf((float) 827.5867);
external2_hold_funds -= Float.valueOf((float) 413.7933);
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
totalDueForCurrentPeriod, loanID);
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_3, external1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_2, external2_hold_funds);
@@ -386,11 +386,11 @@ public class GuarantorTest {
// Second repayment
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -7 * 2);
- LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ loanRepaymentDate = dateFormat.format(todaysDate.getTime());
totalDueForCurrentPeriod = (Float)
loanSchedule.get(2).get("totalDueForPeriod");
external1_hold_funds -= Float.valueOf((float) 831.4067);
external2_hold_funds -= Float.valueOf((float) 415.7033333);
- this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
+ this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
totalDueForCurrentPeriod, loanID);
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_3, external1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_2, external2_hold_funds);
@@ -398,17 +398,17 @@ public class GuarantorTest {
// third repayment
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -7);
- LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ loanRepaymentDate = dateFormat.format(todaysDate.getTime());
totalDueForCurrentPeriod = (Float)
loanSchedule.get(3).get("totalDueForPeriod");
Float self1_hold_funds_temp = self1_hold_funds - Float.valueOf((float)
741.355);
- HashMap transactionDetail =
this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
+ HashMap transactionDetail =
this.loanTransactionHelper.makeRepayment(loanRepaymentDate,
totalDueForCurrentPeriod, loanID);
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds_temp);
verifySavingsOnHoldBalance(externalSavigsId_3, Float.valueOf((float)
0));
verifySavingsOnHoldBalance(externalSavigsId_2, Float.valueOf((float)
0));
// undo repayment
this.loanTransactionHelper.adjustLoanTransaction(loanID, (Integer)
transactionDetail.get(CommonConstants.RESPONSE_RESOURCE_ID),
- LOAN_REPAYMENT_DATE, "0", "");
+ loanRepaymentDate, "0", "");
verifySavingsOnHoldBalance(selfSavigsId, self1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_3, external1_hold_funds);
verifySavingsOnHoldBalance(externalSavigsId_2, external2_hold_funds);
@@ -442,8 +442,8 @@ public class GuarantorTest {
DateFormat dateFormat = new SimpleDateFormat("dd MMMM yyyy",
Locale.US);
Calendar todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -21);
- String LOAN_DISBURSEMENT_DATE =
dateFormat.format(todaysDate.getTime());
- final Integer loanID = applyForLoanApplication(clientID,
loanProductID, LOAN_DISBURSEMENT_DATE);
+ final String loanDisbursementDate =
dateFormat.format(todaysDate.getTime());
+ final Integer loanID = applyForLoanApplication(clientID,
loanProductID, loanDisbursementDate);
Assertions.assertNotNull(loanID);
HashMap loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);
@@ -461,7 +461,7 @@ public class GuarantorTest {
Assertions.assertNotNull(externalGuarantee_1);
LOG.info("-----------------------------------APPROVE
LOAN-----------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.approveLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);
LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);
self1_hold_funds += self1_guarantee;
@@ -470,14 +470,14 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_1, external1_hold_funds);
LOG.info("-------------------------------DISBURSE
LOAN-------------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);
// First repayment
ArrayList<HashMap> loanSchedule =
this.loanTransactionHelper.getLoanRepaymentSchedule(this.requestSpec,
this.responseSpec, loanID);
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -14);
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ final String LOAN_REPAYMENT_DATE =
dateFormat.format(todaysDate.getTime());
Float totalDueForCurrentPeriod = (Float)
loanSchedule.get(1).get("totalDueForPeriod");
external1_hold_funds -= Float.valueOf((float) 993.104);
this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
@@ -515,8 +515,8 @@ public class GuarantorTest {
DateFormat dateFormat = new SimpleDateFormat("dd MMMM yyyy",
Locale.US);
Calendar todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -21);
- String LOAN_DISBURSEMENT_DATE =
dateFormat.format(todaysDate.getTime());
- final Integer loanID = applyForLoanApplication(clientID,
loanProductID, LOAN_DISBURSEMENT_DATE);
+ final String loanDisbursementDate =
dateFormat.format(todaysDate.getTime());
+ final Integer loanID = applyForLoanApplication(clientID,
loanProductID, loanDisbursementDate);
Assertions.assertNotNull(loanID);
HashMap loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);
@@ -535,7 +535,7 @@ public class GuarantorTest {
Assertions.assertNotNull(externalGuarantee_1);
LOG.info("-----------------------------------APPROVE
LOAN-----------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.approveLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);
LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);
self1_hold_funds += selfguarantee;
@@ -544,14 +544,14 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_1, external1_hold_funds);
LOG.info("-------------------------------DISBURSE
LOAN-------------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);
// First repayment
ArrayList<HashMap> loanSchedule =
this.loanTransactionHelper.getLoanRepaymentSchedule(this.requestSpec,
this.responseSpec, loanID);
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -14);
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ final String LOAN_REPAYMENT_DATE =
dateFormat.format(todaysDate.getTime());
Float totalDueForCurrentPeriod = (Float)
loanSchedule.get(1).get("totalDueForPeriod");
external1_hold_funds -= Float.valueOf((float) 3227.588);
this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
@@ -585,8 +585,8 @@ public class GuarantorTest {
DateFormat dateFormat = new SimpleDateFormat("dd MMMM yyyy",
Locale.US);
Calendar todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -21);
- String LOAN_DISBURSEMENT_DATE =
dateFormat.format(todaysDate.getTime());
- final Integer loanID = applyForLoanApplication(clientID,
loanProductID, LOAN_DISBURSEMENT_DATE);
+ final String loanDisbursementDate =
dateFormat.format(todaysDate.getTime());
+ final Integer loanID = applyForLoanApplication(clientID,
loanProductID, loanDisbursementDate);
Assertions.assertNotNull(loanID);
HashMap loanStatusHashMap =
LoanStatusChecker.getStatusOfLoan(this.requestSpec, this.responseSpec, loanID);
LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);
@@ -604,7 +604,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_1, null);
LOG.info("-----------------------------------APPROVE
LOAN-----------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.approveLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.approveLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);
LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);
self1_hold_funds += self1_guarantee;
@@ -613,14 +613,14 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_1, external1_hold_funds);
LOG.info("-------------------------------DISBURSE
LOAN-------------------------------------------");
- loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(LOAN_DISBURSEMENT_DATE, loanID);
+ loanStatusHashMap =
this.loanTransactionHelper.disburseLoan(loanDisbursementDate, loanID);
LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);
// First repayment
ArrayList<HashMap> loanSchedule =
this.loanTransactionHelper.getLoanRepaymentSchedule(this.requestSpec,
this.responseSpec, loanID);
todaysDate = Calendar.getInstance();
todaysDate.add(Calendar.DAY_OF_MONTH, -14);
- String LOAN_REPAYMENT_DATE = dateFormat.format(todaysDate.getTime());
+ final String LOAN_REPAYMENT_DATE =
dateFormat.format(todaysDate.getTime());
Float totalDueForCurrentPeriod = (Float)
loanSchedule.get(1).get("totalDueForPeriod");
external1_hold_funds -= Float.valueOf((float) 993.104);
this.loanTransactionHelper.makeRepayment(LOAN_REPAYMENT_DATE,
totalDueForCurrentPeriod, loanID);
@@ -628,7 +628,7 @@ public class GuarantorTest {
verifySavingsOnHoldBalance(externalSavigsId_1, external1_hold_funds);
todaysDate = Calendar.getInstance();
- String LOAN_WRITEOFF_DATE = dateFormat.format(todaysDate.getTime());
+ final String LOAN_WRITEOFF_DATE =
dateFormat.format(todaysDate.getTime());
this.loanTransactionHelper.writeOffLoan(LOAN_WRITEOFF_DATE, loanID);
verifySavingsBalanceAndOnHoldBalance(selfSavigsId,
Float.valueOf((float) 0), self1_balance);
verifySavingsBalanceAndOnHoldBalance(externalSavigsId_1,
Float.valueOf((float) 0), external1_balance);
diff --git
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/boot/WebFrontEndConfiguration.java
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/boot/WebFrontEndConfiguration.java
index 03068f3..05ee0cb 100644
---
a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/boot/WebFrontEndConfiguration.java
+++
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/boot/WebFrontEndConfiguration.java
@@ -46,9 +46,9 @@ public class WebFrontEndConfiguration implements
WebMvcConfigurer {
LOG.info("Found Swagger UI at {}", fullPathToSwaggerUiJs);
String fullPathToSwaggerUi = fullPathToSwaggerUiJs.substring(0,
fullPathToSwaggerUiJs.lastIndexOf("/") + 1);
- String[] SWAGGER_RESOURCE_LOCATIONS = {
"classpath:/static/swagger-ui/", "classpath:" + fullPathToSwaggerUi };
+ final String[] swaggerResourceLocations = {
"classpath:/static/swagger-ui/", "classpath:" + fullPathToSwaggerUi };
-
registry.addResourceHandler("/swagger-ui/**").addResourceLocations(SWAGGER_RESOURCE_LOCATIONS);
+
registry.addResourceHandler("/swagger-ui/**").addResourceLocations(swaggerResourceLocations);
}
@Override