use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.
the class MpesaImportTest method failImportTransaction.
/**
* MPESA - Import has expected errors due to invalid data
* and overpayment amount and user is not able to continue
* http://mifosforge.jira.com/browse/MIFOSTEST-692
* @throws Exception
*/
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void failImportTransaction() throws Exception {
//Given
String path = this.getClass().getResource("/mpesa/" + FILE_WITH_OVERPAYMENT_AMOUNT).toString();
String dataset = "mpesa_export_dbunit.xml";
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, dataset, dataSource, selenium);
propertiesHelper.setImportTransactionOrder("AL3,AL5");
SavingsAccountHelper savingsAccountHelper = new SavingsAccountHelper(selenium);
savingsAccountHelper.closeSavingsAccount("000100000000019", "Close account");
//When
ImportTransactionsPage importTransactionsPage = importTransaction(path);
importTransactionsPage.checkErrors(new String[] { "Row <24> error - THY89933" + " - Last account is a loan account but the total paid in amount" + " is greater than the total due amount" });
//Then
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage("000100000000013");
loanAccountPage.verifyStatus(LoanAccountPage.ACTIVE);
loanAccountPage.verifyExactLoanAmount("2,000");
TransactionHistoryPage transactionHistoryPage = loanAccountPage.navigateToTransactionHistoryPage();
transactionHistoryPage.verifyTransactionHistory(183, 1, 6);
}
use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.
the class UpdateCustomPropertiesTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
navigationHelper = new NavigationHelper(selenium);
propertiesHelper = new CustomPropertiesHelper(selenium);
savingsAccountHelper = new SavingsAccountHelper(selenium);
centerTestHelper = new CenterTestHelper(selenium);
clientTestHelper = new ClientTestHelper(selenium);
super.setUp();
}
use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.
the class CreateSavingsAccountTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
savingsAccountHelper = new SavingsAccountHelper(selenium);
questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
questionGroupTestHelper.markQuestionGroupAsActive("QGForCreateSavingsAccount");
}
use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.
the class SavingsAccountAddNoteTest method setUp.
@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2009, 9, 9, 8, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
savingsAccountHelper = new SavingsAccountHelper(selenium);
}
use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.
the class SavingsAccountPerformanceHistoryTest method setUp.
@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2009, 9, 9, 8, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
savingsAccountHelper = new SavingsAccountHelper(selenium);
}
Aggregations