fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject [1/2] fineract git commit: failing integration test case fixed
Date Mon, 20 Nov 2017 10:30:47 GMT
Repository: fineract
Updated Branches:
  refs/heads/develop e23ff94dd -> a5a88dc91


failing integration test case fixed


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

Branch: refs/heads/develop
Commit: 7eea2dc302738518ff24720e23e295c4320eef97
Parents: d6accae
Author: nazeer shaik <nazeer.shaik@confluxtechnologies.com>
Authored: Fri Nov 3 18:48:52 2017 +0530
Committer: nazeer shaik <nazeer.shaik@confluxtechnologies.com>
Committed: Fri Nov 3 18:48:52 2017 +0530

----------------------------------------------------------------------
 .../apache/fineract/integrationtests/common/HolidayHelper.java   | 2 +-
 .../fineract/portfolio/loanaccount/domain/LoanRepository.java    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/fineract/blob/7eea2dc3/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/HolidayHelper.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/HolidayHelper.java
b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/HolidayHelper.java
index d8b90ad..b1a5e64 100644
--- a/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/HolidayHelper.java
+++ b/fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/common/HolidayHelper.java
@@ -59,7 +59,7 @@ public class HolidayHelper {
         map.put("fromDate", "01 April 2013");
         map.put("toDate", "01 April 2013");
         map.put("repaymentsRescheduledTo", "08 April 2013");
-
+        map.put("reschedulingType", 2);
         String HolidayCreateJson = new Gson().toJson(map);
         System.out.println(HolidayCreateJson);
         return HolidayCreateJson;

http://git-wip-us.apache.org/repos/asf/fineract/blob/7eea2dc3/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanRepository.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanRepository.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanRepository.java
index fe17368..2db0f76 100755
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanRepository.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanRepository.java
@@ -29,10 +29,10 @@ import org.springframework.data.repository.query.Param;
 
 public interface LoanRepository extends JpaRepository<Loan, Long>, JpaSpecificationExecutor<Loan>
{
 
-    public static final String FIND_GROUP_LOANS_DISBURSED_AFTER = "select l from Loan l where
l.actualDisbursementDate > :disbursementDate and "
+    public static final String FIND_GROUP_LOANS_DISBURSED_AFTER = "select l from Loan l where
( l.actualDisbursementDate IS NOT NULL and l.actualDisbursementDate > :disbursementDate)
and "
             + "l.group.id = :groupId and l.loanType = :loanType order by l.actualDisbursementDate";
 
-    public static final String FIND_CLIENT_OR_JLG_LOANS_DISBURSED_AFTER = "select l from
Loan l where l.actualDisbursementDate > :disbursementDate and "
+    public static final String FIND_CLIENT_OR_JLG_LOANS_DISBURSED_AFTER = "select l from
Loan l where (l.actualDisbursementDate IS NOT NULL and l.actualDisbursementDate > :disbursementDate)
and "
             + "l.client.id = :clientId order by l.actualDisbursementDate";
 
     public static final String FIND_MAX_GROUP_LOAN_COUNTER_QUERY = "Select MAX(l.loanCounter)
from Loan l where l.group.id = :groupId "


Mime
View raw message