use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.
the class CollectionSheetEntryInputErrorsTest method clickingContinueInBulkEntryPageAndOnlyEnteringBranchShouldResultInErrorMessage.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public // one of the dependent methods throws Exception
void clickingContinueInBulkEntryPageAndOnlyEnteringBranchShouldResultInErrorMessage() throws Exception {
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
CollectionSheetEntrySelectPage selectPage = new CollectionSheetEntryTestHelper(selenium).loginAndNavigateToCollectionSheetEntrySelectPage();
selectPage.verifyPage();
SubmitFormParameters formParameters = setFormParametersForTestOffice("MyOffice1233265929385", null, null, null);
selectPage.fillOutDropDownMenusWithGivenInput(formParameters);
selectPage.submit();
selectPage.verifyPage();
Assert.assertTrue(selectPage.isErrorMessageDisplayed());
}
use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.
the class CollectionSheetEntryInputErrorsTest method getFormParametersForTestOffice.
private SubmitFormParameters getFormParametersForTestOffice() {
SubmitFormParameters formParameters = new SubmitFormParameters();
formParameters.setBranch("MyOffice1233265929385");
formParameters.setLoanOfficer("Joe1233265931256 Guy1233265931256");
formParameters.setCenter("MyCenter1233265933427");
formParameters.setPaymentMode("Cash");
return formParameters;
}
use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.
the class CollectionSheetEntryInputErrorsTest method enteringAnInvalidAmountAndClickingPreviewShouldCauseAReturnToCollectionSheetEntryPage.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public // one of the dependent methods throws Exception
void enteringAnInvalidAmountAndClickingPreviewShouldCauseAReturnToCollectionSheetEntryPage() throws Exception {
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
SubmitFormParameters formParameters = getFormParametersForTestOffice();
CollectionSheetEntryEnterDataPage enterDataPage = navigateToCollectionSheetEntryPage(formParameters);
enterDataPage.verifyPage();
// invalid amount
enterDataPage.enterCustomerAccountValue(0, 6, -5);
CollectionSheetEntryEnterDataPage nextPage = enterDataPage.clickPreviewButton();
nextPage.verifyPage();
}
Aggregations