use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.
the class ClientTest method createClientOutsideGroup.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// http://mifosforge.jira.com/browse/MIFOSTEST-236
@Test(enabled = true)
public void createClientOutsideGroup() throws Exception {
// When
CreateClientEnterPersonalDataPage clientPersonalDataPage = navigationHelper.navigateToCreateClientEnterPersonalDataPage(officeName);
// we remember form parameters to verify MIFOS-5032
CreateClientEnterPersonalDataPage.SubmitFormParameters formParameters = FormParametersHelper.getClientEnterPersonalDataPageFormParameters();
clientPersonalDataPage = clientPersonalDataPage.create(formParameters);
CreateClientEnterMfiDataPage clientEnterMfiDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterMfiDataPage();
CreateClientEnterMfiDataPage.SubmitFormParameters parameters = new CreateClientEnterMfiDataPage.SubmitFormParameters();
parameters.setLoanOfficerId("loan officer");
MeetingParameters meeting = new MeetingParameters();
meeting.setMeetingPlace("testMeetingPlace");
meeting.setWeekFrequency("1");
meeting.setWeekDay(MeetingParameters.WeekDay.MONDAY);
parameters.setMeeting(meeting);
CreateClientPreviewDataPage createClientPreviewDataPage = clientEnterMfiDataPage.submitAndGotoCreateClientPreviewDataPage(parameters);
CreateClientConfirmationPage clientConfirmationPage = createClientPreviewDataPage.submit();
// Then
clientConfirmationPage.navigateToClientViewDetailsPage();
// extension to verify MIFOS-5032
clientPersonalDataPage = navigationHelper.navigateToCreateClientEnterPersonalDataPage(officeName);
clientPersonalDataPage = clientPersonalDataPage.create(formParameters);
clientEnterMfiDataPage = clientPersonalDataPage.submitAndGotoCreateClientEnterMfiDataPage();
createClientPreviewDataPage = clientEnterMfiDataPage.submitAndGotoCreateClientPreviewDataPage(parameters);
createClientPreviewDataPage.submitWithOneError("The combination of the specified Date of Birth and name " + formParameters.getFirstName() + " " + formParameters.getLastName() + " already exists in the application. Please specify a different name.");
}
use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.
the class CenterMeetingTest method verifyDefaultDisburstmentDateWithMeetingStartDateInTheFutureWithSameWeekDays.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void verifyDefaultDisburstmentDateWithMeetingStartDateInTheFutureWithSameWeekDays(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.WEDNESDAY);
meeting.setMeetingStartDate("31/10/2012");
prepareCenterForTest(meeting);
prepareGroupForTest();
LoanTestHelper loanHelper = new LoanTestHelper(selenium);
CreateLoanAccountEntryPage loanEntryPage = loanHelper.navigateToCreateLoanAccountEntryPageWithoutLogout(groupName, loanProductName);
loanEntryPage.verifyDisbsursalDate("31", "10", "2012");
}
use of org.mifos.test.acceptance.framework.center.MeetingParameters in project head by mifos.
the class CenterMeetingTest method verifyDefaultDisburstmentDateWithMeetingStartDateInThePast.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void verifyDefaultDisburstmentDateWithMeetingStartDateInThePast(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("10/10/2000");
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 CenterMeetingTest method verifyDefaultDisburstmentDateWithDefaultMeetingStartDate.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void verifyDefaultDisburstmentDateWithDefaultMeetingStartDate(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(null);
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 CenterMeetingTest method verifyDefaultDisburstmentDateWithMeetingStartDateInTheFuture.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void verifyDefaultDisburstmentDateWithMeetingStartDateInTheFuture(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.WEDNESDAY);
meeting.setMeetingStartDate("25/10/2012");
prepareCenterForTest(meeting);
prepareGroupForTest();
LoanTestHelper loanHelper = new LoanTestHelper(selenium);
CreateLoanAccountEntryPage loanEntryPage = loanHelper.navigateToCreateLoanAccountEntryPageWithoutLogout(groupName, loanProductName);
loanEntryPage.verifyDisbsursalDate("31", "10", "2012");
}
Aggregations