use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class VariableInstalmentLoanTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
navigationHelper = new NavigationHelper(selenium);
systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
loanTestHelper = new LoanTestHelper(selenium);
loanTestHelper.setApplicationTime(systemDateTime);
TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
feeTestHelper = new FeeTestHelper(dataSetup, new NavigationHelper(selenium));
applicationDatabaseOperation.updateLSIM(1);
}
use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class RedoLoanDisbursalTest method dataSetUpForVariableInstallmentLoan.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void dataSetUpForVariableInstallmentLoan() throws Exception {
navigationHelper = new NavigationHelper(selenium);
loanTestHelper = new LoanTestHelper(selenium);
loanProductTestHelper = new LoanProductTestHelper(selenium);
systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
loanTestHelper.setApplicationTime(systemDateTime);
dataSetup.addDecliningPrincipalBalance();
}
use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class LoanProcessWithDifferentCurrencyTest method createLoanAccountOfDifferentCurrency.
@SuppressWarnings({ "PMD.SignatureDeclareThrowsException" })
private // one of the dependent methods throws Exception
String createLoanAccountOfDifferentCurrency(String clientName) throws Exception {
loanTestHelper = new LoanTestHelper(selenium);
CreateLoanAccountSearchParameters searchParameters = new CreateLoanAccountSearchParameters();
searchParameters.setSearchString(clientName);
searchParameters.setLoanProduct("Loan With Different Currency");
CreateLoanAccountSubmitParameters submitAccountParameters = new CreateLoanAccountSubmitParameters();
submitAccountParameters.setAmount("1012");
String fee = "USDfeeAdditional";
submitAccountParameters.setAdditionalFee1(fee);
return createLoanAndCheckAmount(searchParameters, submitAccountParameters);
}
use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class RolesAndPermissionTest method setUp.
@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_dbunit.xml", dataSource, selenium);
navigationHelper = new NavigationHelper(selenium);
loanTestHelper = new LoanTestHelper(selenium);
loanProductTestHelper = new LoanProductTestHelper(selenium);
systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
loanTestHelper.setApplicationTime(systemDateTime);
dataSetup.createBranch(OfficeParameters.BRANCH_OFFICE, officeName, "Off");
dataSetup.createUser(userLoginName, userName, officeName);
dataSetup.createClient(clientName, officeName, userName);
dataSetup.addDecliningPrincipalBalance();
}
use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class CreateGroupLoanAccountTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
loanTestHelper = new LoanTestHelper(selenium);
navigationHelper = new NavigationHelper(selenium);
questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
questionGroupTestHelper.markQuestionGroupAsInactive("QGForCreateLoan1");
questionGroupTestHelper.markQuestionGroupAsInactive("QGForCreateLoan2");
}
Aggregations