From 17d96ae8a61afc0f9393a5d56d9d98396d74bfa2 Mon Sep 17 00:00:00 2001 From: Madhukar Date: Tue, 17 Jun 2014 13:09:15 +0530 Subject: [PATCH] MIFOSX-1317 test case fix --- .../mifosplatform/integrationtests/RecurringDepositTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mifosng-provider/src/integrationTest/java/org/mifosplatform/integrationtests/RecurringDepositTest.java b/mifosng-provider/src/integrationTest/java/org/mifosplatform/integrationtests/RecurringDepositTest.java index 458542002..ad3a472f2 100644 --- a/mifosng-provider/src/integrationTest/java/org/mifosplatform/integrationtests/RecurringDepositTest.java +++ b/mifosng-provider/src/integrationTest/java/org/mifosplatform/integrationtests/RecurringDepositTest.java @@ -975,6 +975,7 @@ public class RecurringDepositTest { DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE); Assert.assertNotNull(transactionIdForDeposit); + currentDate = currentDate - 1; interestPerMonth = (float) (interestPerDay * principal * currentDate); System.out.println("IPM = " + interestPerMonth); principal += interestPerMonth; @@ -1101,6 +1102,7 @@ public class RecurringDepositTest { DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE); Assert.assertNotNull(transactionIdForDeposit); + currentDate = currentDate - 1; interestPerMonth = (float) (interestPerDay * principal * currentDate); System.out.println("IPM = " + interestPerMonth); principal += interestPerMonth; @@ -1234,6 +1236,7 @@ public class RecurringDepositTest { DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE); Assert.assertNotNull(transactionIdForDeposit); + currentDate = currentDate - 1; interestPerMonth = (float) (interestPerDay * principal * currentDate); System.out.println("IPM = " + interestPerMonth); principal += interestPerMonth; @@ -1372,6 +1375,7 @@ public class RecurringDepositTest { DEPOSIT_AMOUNT, EXPECTED_FIRST_DEPOSIT_ON_DATE); Assert.assertNotNull(newTransactionIdForDeposit); + currentDate = currentDate - 1; interestPerMonth = (float) (interestPerDay * principal * currentDate); System.out.println("IPM = " + interestPerMonth); principal += interestPerMonth;