fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject incubator-fineract git commit: Second Disbursement date was hard coded, due to this 1 test case was failing
Date Mon, 13 Jun 2016 10:42:58 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop b43d3ef06 -> 882132739


Second Disbursement date was hard coded, due to this 1 test case was failing


Project: http://git-wip-us.apache.org/repos/asf/incubator-fineract/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-fineract/commit/88213273
Tree: http://git-wip-us.apache.org/repos/asf/incubator-fineract/tree/88213273
Diff: http://git-wip-us.apache.org/repos/asf/incubator-fineract/diff/88213273

Branch: refs/heads/develop
Commit: 882132739ebf6b0da969144e0e849648016d2620
Parents: b43d3ef
Author: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Authored: Mon Jun 13 16:12:12 2016 +0530
Committer: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Committed: Mon Jun 13 16:12:12 2016 +0530

----------------------------------------------------------------------
 .../integrationtests/LoanReschedulingWithinCenterTest.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/88213273/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/LoanReschedulingWithinCenterTest.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/LoanReschedulingWithinCenterTest.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/LoanReschedulingWithinCenterTest.java
index 4126f75..2e031cd 100644
--- a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/LoanReschedulingWithinCenterTest.java
+++ b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/LoanReschedulingWithinCenterTest.java
@@ -226,15 +226,19 @@ public class LoanReschedulingWithinCenterTest {
                 LoanProductTestBuilder.INTEREST_APPLICABLE_STRATEGY_ON_PRE_CLOSE_DATE, null,
isMultiTrancheLoan, 
                 null, null);
 
+        Calendar seondTrancheDate = Calendar.getInstance(Utils.getTimeZoneOfTenant());
+        seondTrancheDate.add(Calendar.MONTH, 1);
+        String secondDisbursement = dateFormat.format(seondTrancheDate.getTime()) ;
+        
         // CREATE TRANCHES
         List<HashMap> createTranches = new ArrayList<>();
         createTranches.add(this.loanApplicationApprovalTest.createTrancheDetail(disbursementDate,
"5000"));
-        createTranches.add(this.loanApplicationApprovalTest.createTrancheDetail("25 June
2016", "5000"));
+        createTranches.add(this.loanApplicationApprovalTest.createTrancheDetail(secondDisbursement,
"5000"));
 
         // APPROVE TRANCHES
         List<HashMap> approveTranches = new ArrayList<>();
         approveTranches.add(this.loanApplicationApprovalTest.createTrancheDetail(disbursementDate,
"5000"));
-        approveTranches.add(this.loanApplicationApprovalTest.createTrancheDetail("25 June
2016", "5000"));
+        approveTranches.add(this.loanApplicationApprovalTest.createTrancheDetail(secondDisbursement,
"5000"));
 
         // APPLY FOR TRANCHE LOAN WITH INTEREST RECALCULATION
         final Integer loanID = applyForLoanApplicationForInterestRecalculation(clientId,
groupId, calendarId, loanProductID,


Mime
View raw message