Ejemplo n.º 1
0
  @SuppressWarnings("PMD.SignatureDeclareThrowsException")
  // http://mifosforge.jira.com/browse/MIFOSTEST-232
  @Test(enabled = true)
  public void verifyPropertyClientRulesCenterHierarchyExistsFalse() throws Exception {
    // Given
    propertiesHelper.setCenterHierarchyExists("false");

    // When
    ClientsAndAccountsHomepage clientsAndAccountsHomePage =
        navigationHelper.navigateToClientsAndAccountsPage();

    // Then
    clientsAndAccountsHomePage.verifyMenuWithCenterHierarchyOff();

    // Given
    propertiesHelper.setCenterHierarchyExists("true");

    // When
    clientsAndAccountsHomePage = navigationHelper.navigateToClientsAndAccountsPage();

    // Then
    clientsAndAccountsHomePage.verifyMenuWithCenterHierarchyOn();
  }
Ejemplo n.º 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);
  }