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");
}
Aggregations