@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(); }
@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); }