Exemplo n.º 1
0
 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;
 }
  public CreateClientPreviewDataPage createClientMFIInformationAndGoToPreviewPage(
      String loanOfficer, CreateClientEnterMfiDataPage clientMfiDataPage) {
    CreateClientEnterMfiDataPage.SubmitFormParameters mfiFormParameters =
        new CreateClientEnterMfiDataPage.SubmitFormParameters();
    mfiFormParameters.setLoanOfficerId(loanOfficer);

    MeetingParameters meetingFormParameters = new MeetingParameters();
    meetingFormParameters.setWeekFrequency("1");
    meetingFormParameters.setWeekDay(MeetingParameters.WEDNESDAY);
    meetingFormParameters.setMeetingPlace("Mangalore");

    mfiFormParameters.setMeeting(meetingFormParameters);
    return clientMfiDataPage.submitAndGotoCreateClientPreviewDataPage(mfiFormParameters);
  }
  private CreateClientConfirmationPage navigateToConfirmationPage(String loanOfficer) {
    CreateClientEnterMfiDataPage.SubmitFormParameters mfiFormParameters =
        new CreateClientEnterMfiDataPage.SubmitFormParameters();
    mfiFormParameters.setLoanOfficerId(loanOfficer);

    MeetingParameters meetingFormParameters = new MeetingParameters();
    meetingFormParameters.setWeekFrequency("1");
    meetingFormParameters.setWeekDay(MeetingParameters.WEDNESDAY);
    meetingFormParameters.setMeetingPlace("Bangalore");

    mfiFormParameters.setMeeting(meetingFormParameters);

    CreateClientPreviewDataPage clientPreviewDataPage =
        new CreateClientEnterMfiDataPage(selenium)
            .submitAndGotoCreateClientPreviewDataPage(mfiFormParameters);
    CreateClientConfirmationPage clientConfirmationPage = clientPreviewDataPage.submit();
    clientConfirmationPage.verifyPage();
    return clientConfirmationPage;
  }
Exemplo n.º 4
0
  @SuppressWarnings("PMD.SignatureDeclareThrowsException")
  // http://mifosforge.jira.com/browse/MIFOSTEST-231
  @Test(enabled = true)
  public void verifyPropertyClientRulesCenterHierarchyExistsTrue() throws Exception {
    // Given
    propertiesHelper.setCenterHierarchyExists("true");

    // When
    CreateCenterEnterDataPage.SubmitFormParameters formParameters =
        new CreateCenterEnterDataPage.SubmitFormParameters();
    formParameters.setCenterName("testCenterName12123");
    formParameters.setLoanOfficer("loan officer");
    MeetingParameters meeting = new MeetingParameters();
    meeting.setMeetingPlace("Bangalore");
    meeting.setWeekDay(MeetingParameters.WeekDay.WEDNESDAY);
    meeting.setWeekFrequency("1");
    formParameters.setMeeting(meeting);
    CenterViewDetailsPage centerViewDetailsPage =
        centerTestHelper.createCenter(formParameters, "MyOfficeDHMFT");

    // Then
    centerViewDetailsPage.verifyActiveCenter(formParameters);
  }