use of org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder in project head by mifos.
the class InstallmentsValidatorTest method setUp.
@Before
public void setUp() throws Exception {
locale = new Locale("en", "GB");
installmentBuilder = new RepaymentScheduleInstallmentBuilder(locale);
installmentsValidator = new InstallmentsValidatorImpl(installmentFormatValidator, listOfInstallmentsValidator, installmentRulesValidator);
officeId = Short.valueOf("1");
}
use of org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder in project head by mifos.
the class InstallmentRulesValidatorTest method setupAndInjectDependencies.
@Before
public void setupAndInjectDependencies() {
locale = new Locale("en", "GB");
installmentBuilder = new RepaymentScheduleInstallmentBuilder(locale);
rupee = new MifosCurrency(Short.valueOf("1"), "Rupee", BigDecimal.valueOf(1), "INR");
installmentRulesValidator = new InstallmentRulesValidatorImpl();
officeId = Short.valueOf("1");
}
use of org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder in project head by mifos.
the class LoanAccountActionFormTest method setUp.
@Before
public void setUp() throws Exception {
form = new LoanAccountActionForm();
paymentMock = createMock(PaymentDataHtmlBean.class);
expect(paymentMock.hasTotalAmount()).andReturn(true);
actionErrors = new ActionErrors();
locale = new Locale("en", "GB");
installmentBuilder = new RepaymentScheduleInstallmentBuilder(locale);
rupee = new MifosCurrency(Short.valueOf("1"), "Rupee", BigDecimal.valueOf(1), "INR");
}
use of org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder in project head by mifos.
the class LoanServiceFacadeWebTierTest method setupAndInjectDependencies.
@Before
public void setupAndInjectDependencies() {
locale = new Locale("en", "GB");
installmentBuilder = new RepaymentScheduleInstallmentBuilder(locale);
rupee = new MifosCurrency(Short.valueOf("1"), "Rupee", BigDecimal.valueOf(1), "INR");
loanServiceFacade = new LoanServiceFacadeWebTier(loanDao, loanBusinessService);
}
use of org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder in project head by mifos.
the class LoanBusinessServiceTest method setupAndInjectDependencies.
@Before
public void setupAndInjectDependencies() {
loanBusinessService = new LoanBusinessService(legacyLoanDao, configService, null, holidayService, scheduleCalculatorAdaptor);
locale = new Locale("en", "GB");
installmentBuilder = new RepaymentScheduleInstallmentBuilder(locale);
rupee = new MifosCurrency(Short.valueOf("1"), "Rupee", BigDecimal.valueOf(1), "INR");
officeId = Short.valueOf("1");
}
Aggregations