use of org.mifos.application.master.business.InterestTypesEntity in project head by mifos.
the class LoanOfferingBOIntegrationTest method testLoanOfferingWithDecliningInterestNoDeductionAtDisbursement.
@Test
public void testLoanOfferingWithDecliningInterestNoDeductionAtDisbursement() throws Exception {
createIntitalObjects();
interestTypes = new InterestTypesEntity(InterestType.DECLINING);
Date startDate = offSetCurrentDate(0);
Date endDate = offSetCurrentDate(2);
LoanOfferingBO loanOffering = new LoanOfferingBO(TestObjectFactory.getContext(), "Loan Offering", "LOAP", productCategory, prdApplicableMaster, startDate, endDate, null, null, null, interestTypes, new Money(getCurrency(), "1000"), new Money(getCurrency(), "3000"), new Money(getCurrency(), "2000.0"), 12.0, 2.0, 3.0, (short) 20, (short) 11, (short) 17, false, false, false, null, null, null, frequency, principalglCodeEntity, intglCodeEntity, waiverInterest);
Assert.assertEquals(InterestType.DECLINING, loanOffering.getInterestType());
}
Aggregations