use of org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage.CreateHolidaySubmitParameters in project head by mifos.
the class HolidayTest method definedAndViewHoliday.
//http://mifosforge.jira.com/browse/MIFOSTEST-72
@Test(enabled = true)
public void definedAndViewHoliday() throws Exception {
//Given
dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2037, 1, 1, 13, 0, 0, 0));
//When / Then
CreateHolidaySubmitParameters params = getHolidayParameters("2037");
params.setRepaymentRule(CreateHolidaySubmitParameters.SAME_DAY);
holidayTestHelper.createHoliday(params);
}
use of org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage.CreateHolidaySubmitParameters in project head by mifos.
the class HolidayTest method holidaysRepaymentRuleNextWorkingDayWithBatchJobs.
//http://mifosforge.jira.com/browse/MIFOSTEST-76
@Test(enabled = true)
public void holidaysRepaymentRuleNextWorkingDayWithBatchJobs() throws Exception {
//Given
dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2036, 1, 1, 13, 0, 0, 0));
//When
CreateLoanAccountSearchParameters searchParameters = setSearchParameters();
CreateLoanAccountSubmitParameters submitAccountParameters = setSubmitParameters();
LoanAccountPage page = loanTestHelper.createLoanAccount(searchParameters, submitAccountParameters);
String lid = page.getAccountId();
page.navigateToRepaymentSchedulePage();
loanTestHelper.verifyRepaymentScheduleForHolidays("11-Jan-2036", "18-Jan-2036", "25-Jan-2036", "01-Feb-2036", "08-Feb-2036", "15-Feb-2036", "22-Feb-2036", "29-Feb-2036", "07-Mar-2036", "14-Mar-2036");
CreateHolidaySubmitParameters param = getHolidayParameters("2036");
param.setRepaymentRule(CreateHolidaySubmitParameters.NEXT_WORKING_DAY);
createHolidayForInstallments(param);
//Then
runBatchJobsForHoliday();
navigationHelper.navigateToLoanAccountPage(lid).navigateToRepaymentSchedulePage();
loanTestHelper.verifyRepaymentScheduleForHolidays("11-Jan-2036", "18-Jan-2036", "25-Jan-2036", "01-Feb-2036", "08-Feb-2036", "29-Feb-2036", "29-Feb-2036", "29-Feb-2036", "07-Mar-2036", "14-Mar-2036");
}
Aggregations