use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.
the class CenterMeetingTest method verifyDefaultDisburstmentDateWithTodayMeetingStartDateAndCurrentWeekDay.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void verifyDefaultDisburstmentDateWithTodayMeetingStartDateAndCurrentWeekDay(int lsim) throws Exception {
databaseOperation.updateLSIM(lsim);
DateTime time = new DateTime(2012, 10, 19, 1, 0, 0, 0);
setTime(time);
MeetingParameters meeting = new MeetingParameters();
meeting.setMeetingPlace("centerTestMeetingPlace" + StringUtil.getRandomString(5));
meeting.setWeekFrequency("1");
meeting.setWeekDay(MeetingParameters.WeekDay.FRIDAY);
meeting.setMeetingStartDate("19/10/2012");
prepareCenterForTest(meeting);
prepareGroupForTest();
LoanTestHelper loanHelper = new LoanTestHelper(selenium);
CreateLoanAccountEntryPage loanEntryPage = loanHelper.navigateToCreateLoanAccountEntryPageWithoutLogout(groupName, loanProductName);
loanEntryPage.verifyDisbsursalDate("19", "10", "2012");
}
use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.
the class CenterMeetingTest method verifyDefaultDisburstmentDateWithTodayMeetingStartDate.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void verifyDefaultDisburstmentDateWithTodayMeetingStartDate(int lsim) throws Exception {
databaseOperation.updateLSIM(lsim);
DateTime time = new DateTime(2012, 10, 19, 1, 0, 0, 0);
setTime(time);
MeetingParameters meeting = new MeetingParameters();
meeting.setMeetingPlace("centerTestMeetingPlace" + StringUtil.getRandomString(5));
meeting.setWeekFrequency("1");
meeting.setWeekDay(MeetingParameters.WeekDay.MONDAY);
meeting.setMeetingStartDate("19/10/2012");
prepareCenterForTest(meeting);
prepareGroupForTest();
LoanTestHelper loanHelper = new LoanTestHelper(selenium);
CreateLoanAccountEntryPage loanEntryPage = loanHelper.navigateToCreateLoanAccountEntryPageWithoutLogout(groupName, loanProductName);
loanEntryPage.verifyDisbsursalDate("22", "10", "2012");
}
use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.
the class CenterTest method verifyAcceptedPaymentTypesForCenter.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// http://mifosforge.jira.com/browse/MIFOSTEST-246
@Test(enabled = true)
public void verifyAcceptedPaymentTypesForCenter() throws Exception {
// When
CreateCenterEnterDataPage.SubmitFormParameters formParameters = new CreateCenterEnterDataPage.SubmitFormParameters();
String testCenterName = "Center" + StringUtil.getRandomString(6);
formParameters.setCenterName(testCenterName);
formParameters.setLoanOfficer("loan officer");
MeetingParameters meeting = new MeetingParameters();
meeting.setMeetingPlace("centerTestMeetingPlace" + StringUtil.getRandomString(2));
meeting.setWeekFrequency("1");
meeting.setWeekDay(MeetingParameters.WeekDay.MONDAY);
formParameters.setMeeting(meeting);
centerTestHelper.createCenter(formParameters, "MyOfficeDHMFT");
NavigationHelper navigationHelper = new NavigationHelper(selenium);
AdminPage adminPage = navigationHelper.navigateToAdminPage();
DefineAcceptedPaymentTypesPage defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.CHEQUE);
adminPage = navigationHelper.navigateToAdminPage();
defineAcceptedPaymentTypesPage = adminPage.navigateToDefineAcceptedPaymentType();
defineAcceptedPaymentTypesPage.addLoanFeesPaymentType(DefineAcceptedPaymentTypesPage.VOUCHER);
ApplyPaymentPage applyPaymentPage = navigationHelper.navigateToCenterViewDetailsPage(testCenterName).navigateToViewCenterChargesDetailPage().navigateToApplyPayments();
// Then
applyPaymentPage.verifyModeOfPayments();
}
use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.
the class CenterTest method getCenterParameters.
private CreateCenterEnterDataPage.SubmitFormParameters getCenterParameters(String centerName, String loanOfficer) {
CreateCenterEnterDataPage.SubmitFormParameters formParameters = new CreateCenterEnterDataPage.SubmitFormParameters();
formParameters.setCenterName(centerName);
formParameters.setLoanOfficer(loanOfficer);
MeetingParameters meetingFormParameters = new MeetingParameters();
meetingFormParameters.setWeekFrequency("1");
meetingFormParameters.setWeekDay(MeetingParameters.WeekDay.WEDNESDAY);
meetingFormParameters.setMeetingPlace("Bangalore");
formParameters.setMeeting(meetingFormParameters);
return formParameters;
}
use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.
the class UpdateCustomPropertiesTest method setCenterParameters.
private CreateCenterEnterDataPage.SubmitFormParameters setCenterParameters() {
CreateCenterEnterDataPage.SubmitFormParameters formParameters = new CreateCenterEnterDataPage.SubmitFormParameters();
formParameters.setCenterName("CenterNameTest123456");
formParameters.setLoanOfficer("loan officer");
MeetingParameters meeting = new MeetingParameters();
meeting.setMeetingPlace("testMeetingPlace");
meeting.setWeekFrequency("1");
meeting.setWeekDay(MeetingParameters.WeekDay.MONDAY);
formParameters.setMeeting(meeting);
return formParameters;
}
Aggregations