MIFOSX-2148 : fixed junit test case

This commit is contained in:
pramod
2015-08-26 18:22:24 +05:30
parent 14eb1c0b72
commit ded3006f74
@@ -6,6 +6,7 @@
package org.mifosplatform.portfolio.loanaccount; package org.mifosplatform.portfolio.loanaccount;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.math.RoundingMode;
import java.util.List; import java.util.List;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
@@ -33,9 +34,9 @@ public class HeavensFamilyLoanRepaymentScheduleTransactionProcessorTest {
@Before @Before
public void setUpForEachTestCase() throws Exception { public void setUpForEachTestCase() throws Exception {
Field field = MoneyHelper.class.getDeclaredField("roundingModeIntValue"); Field field = MoneyHelper.class.getDeclaredField("roundingMode");
field.setAccessible(true); field.setAccessible(true);
field.setInt(null, 6); field.set(null, RoundingMode.HALF_EVEN);
this.installments = LoanScheduleTestDataHelper.createSimpleLoanSchedule(this.july2nd, this.usDollars); this.installments = LoanScheduleTestDataHelper.createSimpleLoanSchedule(this.july2nd, this.usDollars);
this.processor = new HeavensFamilyLoanRepaymentScheduleTransactionProcessor(); this.processor = new HeavensFamilyLoanRepaymentScheduleTransactionProcessor();