Search in sources :

Example 6 with RepaymentRuleTypes

use of org.mifos.application.holiday.util.helpers.RepaymentRuleTypes in project head by mifos.

the class HolidayServiceFacadeWebTierTest method setupAndInjectDependencies.

@Before
public void setupAndInjectDependencies() {
    String name = "testHoliday";
    DateTime dateTime = new DateTime();
    Date fromDate = dateTime.plusDays(10).toDate();
    Date thruDate = dateTime.plusDays(20).toDate();
    RepaymentRuleTypes repaymentRule = RepaymentRuleTypes.SAME_DAY;
    holidayDetails = new HolidayDetails(name, fromDate, thruDate, repaymentRule.getValue());
    holidayServiceFacade = new HolidayServiceFacadeWebTier(holidayService, holidayDao);
    locale = new Locale("en", "GB");
    dateFormat = computeDateFormat(locale);
    officeId = Short.valueOf("1");
}
Also used : Locale(java.util.Locale) RepaymentRuleTypes(org.mifos.application.holiday.util.helpers.RepaymentRuleTypes) HolidayDetails(org.mifos.dto.domain.HolidayDetails) DateTime(org.joda.time.DateTime) Date(java.util.Date) LocalDate(org.joda.time.LocalDate) Before(org.junit.Before)

Aggregations

RepaymentRuleTypes (org.mifos.application.holiday.util.helpers.RepaymentRuleTypes)6 Test (org.junit.Test)4 DateTime (org.joda.time.DateTime)2 Date (java.util.Date)1 Locale (java.util.Locale)1 LocalDate (org.joda.time.LocalDate)1 Before (org.junit.Before)1 Holiday (org.mifos.application.holiday.business.Holiday)1 HolidayDetails (org.mifos.dto.domain.HolidayDetails)1