コード例 #1
0
  // http://mifosforge.jira.com/browse/MIFOSTEST-204
  @SuppressWarnings("PMD.SignatureDeclareThrowsException")
  @Test
  public void removeThursdayFromWorkingDays() throws Exception {

    String workingDays = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday";
    propertiesHelper.setWorkingDays(workingDays);
    // When
    CreateCenterEnterDataPage createCenterEnterDataPage =
        navigationHelper.navigateToCreateCenterEnterDataPage("MyOfficeDHMFT");
    CreateMeetingPage createMeetingPage = createCenterEnterDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);

    CreateClientEnterMfiDataPage createClientEnterMfiDataPage =
        navigationHelper.navigateToCreateClientEnterMfiDataPage("MyOfficeDHMFT");
    createMeetingPage = createClientEnterMfiDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);

    workingDays = "Monday,Tuesday,Wednesday,Friday,Saturday";
    propertiesHelper.setWorkingDays(workingDays);

    // Then
    createCenterEnterDataPage =
        navigationHelper.navigateToCreateCenterEnterDataPage("MyOfficeDHMFT");
    createMeetingPage = createCenterEnterDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);

    createClientEnterMfiDataPage =
        navigationHelper.navigateToCreateClientEnterMfiDataPage("MyOfficeDHMFT");
    createMeetingPage = createClientEnterMfiDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);

    String groupName = "testGroup";

    CreateCenterEnterDataPage.SubmitFormParameters formParameters =
        new CreateCenterEnterDataPage.SubmitFormParameters();
    formParameters = setCenterParameters();
    centerTestHelper.createCenter(formParameters, "MyOfficeDHMFT");

    CreateGroupSubmitParameters groupParams = new CreateGroupSubmitParameters();
    groupParams.setGroupName(groupName);
    GroupTestHelper groupTestHelper = new GroupTestHelper(selenium);
    groupTestHelper.createNewGroupPartialApplication("Default Center", groupParams);

    clientTestHelper.createClientAndVerify("loan officer", "MyOfficeDHMFT");

    // restore original configuration
    propertiesHelper.setWorkingDays("Monday,Tuesday,Wednesday,Thursday,Friday,Saturday");
  }
コード例 #2
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);
  }