Search in sources :

Example 1 with RepaymentScheduleInstallmentBuilder

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");
}
Also used : Locale(java.util.Locale) InstallmentsValidatorImpl(org.mifos.accounts.loan.business.service.validators.InstallmentsValidatorImpl) RepaymentScheduleInstallmentBuilder(org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder) Before(org.junit.Before)

Example 2 with RepaymentScheduleInstallmentBuilder

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");
}
Also used : Locale(java.util.Locale) RepaymentScheduleInstallmentBuilder(org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder) MifosCurrency(org.mifos.application.master.business.MifosCurrency) Before(org.junit.Before)

Example 3 with RepaymentScheduleInstallmentBuilder

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");
}
Also used : Locale(java.util.Locale) PaymentDataHtmlBean(org.mifos.accounts.loan.struts.uihelpers.PaymentDataHtmlBean) RepaymentScheduleInstallmentBuilder(org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder) ActionErrors(org.apache.struts.action.ActionErrors) MifosCurrency(org.mifos.application.master.business.MifosCurrency) Before(org.junit.Before)

Example 4 with RepaymentScheduleInstallmentBuilder

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);
}
Also used : Locale(java.util.Locale) RepaymentScheduleInstallmentBuilder(org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder) MifosCurrency(org.mifos.application.master.business.MifosCurrency) Before(org.junit.Before)

Example 5 with RepaymentScheduleInstallmentBuilder

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");
}
Also used : Locale(java.util.Locale) RepaymentScheduleInstallmentBuilder(org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder) MifosCurrency(org.mifos.application.master.business.MifosCurrency) Before(org.junit.Before)

Aggregations

Locale (java.util.Locale)7 Before (org.junit.Before)7 RepaymentScheduleInstallmentBuilder (org.mifos.accounts.loan.util.helpers.RepaymentScheduleInstallmentBuilder)7 MifosCurrency (org.mifos.application.master.business.MifosCurrency)5 ActionErrors (org.apache.struts.action.ActionErrors)1 InstallmentsValidatorImpl (org.mifos.accounts.loan.business.service.validators.InstallmentsValidatorImpl)1 PaymentDataHtmlBean (org.mifos.accounts.loan.struts.uihelpers.PaymentDataHtmlBean)1