You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2018/04/05 14:35:29 UTC

[GitHub] myrle-krantz closed pull request #4: Fix broken unit test.

myrle-krantz closed pull request #4: Fix broken unit test.
URL: https://github.com/apache/fineract-cn-portfolio/pull/4
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/service/src/test/java/io/mifos/individuallending/internal/service/IndividualLoanServiceTest.java b/service/src/test/java/io/mifos/individuallending/internal/service/IndividualLoanServiceTest.java
index ded6725..1f1b794 100644
--- a/service/src/test/java/io/mifos/individuallending/internal/service/IndividualLoanServiceTest.java
+++ b/service/src/test/java/io/mifos/individuallending/internal/service/IndividualLoanServiceTest.java
@@ -276,18 +276,18 @@ public IndividualLoanServiceTest(final TestCase testCase)
   @Test
   public void getPlannedPayments() throws Exception {
     final PlannedPaymentPage firstPage = testSubject.getPlannedPaymentsPage(testCase.getDataContextOfAction(),
-            0,
+            new IndividualLoanService.PlannedPaymentWindow(0,
             20,
-            Optional.of(testCase.initialDisbursementDate));
+            Optional.of(testCase.initialDisbursementDate)));
 
     Assert.assertFalse(firstPage.getElements().size() == 0);
 
     final List<PlannedPayment> allPlannedPayments =
         Stream.iterate(0, x -> x + 1).limit(firstPage.getTotalPages())
             .map(x -> testSubject.getPlannedPaymentsPage(testCase.getDataContextOfAction(),
-                x,
+                    new IndividualLoanService.PlannedPaymentWindow(x,
                 20,
-                Optional.of(testCase.initialDisbursementDate)))
+                Optional.of(testCase.initialDisbursementDate))))
             .flatMap(x -> x.getElements().stream())
             .collect(Collectors.toList());
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services