use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class ProperLoanProductCalculationsTest method setUp.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
@Override
public void setUp() throws Exception {
super.setUp();
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2009, 7, 1, 12, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
loanProductTestHelper = new LoanProductTestHelper(selenium);
loanTestHelper = new LoanTestHelper(selenium);
customPropertiesHelper = new CustomPropertiesHelper(selenium);
}
use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class VariableInstalmentLoanProductTest method setUp.
@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
loanProductTestHelper = new LoanProductTestHelper(selenium);
loanTestHelper = new LoanTestHelper(selenium);
systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
loanTestHelper.setApplicationTime(systemDateTime);
TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
dataSetup.addDecliningPrincipalBalance();
feeTestHelper = new FeeTestHelper(dataSetup, new NavigationHelper(selenium));
}
use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class ViewOriginalLoanScheduleTest method setUp.
@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
if (isSetUpDone) {
systemDateTime = new DateTime(2011, 10, 10, 10, 0, 0, 0);
loanTestHelper.setApplicationTime(systemDateTime);
return;
}
loanProductTestHelper = new LoanProductTestHelper(selenium);
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);
dataSetup.createBranch(OfficeParameters.BRANCH_OFFICE, officeName, "Off");
dataSetup.createUser(userLoginName, userName, officeName);
dataSetup.createClient(clientName, officeName, userName);
systemDateTime = new DateTime(2011, 10, 10, 10, 0, 0, 0);
loanTestHelper.setApplicationTime(systemDateTime);
createHolidays(dataSetup);
new FeeTestHelper(dataSetup, new NavigationHelper(selenium)).createPeriodicFee(feeName, FeesCreatePage.SubmitFormParameters.LOAN, FeesCreatePage.SubmitFormParameters.WEEKLY_FEE_RECURRENCE, 1, 100);
isSetUpDone = true;
}
use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class ClientLoanTransactionHistoryTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
systemDateTime = new DateTime(2011, 3, 4, 12, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(systemDateTime);
loanTestHelper = new LoanTestHelper(selenium);
}
use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper in project head by mifos.
the class CreateGLIMLoanAccountTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
applicationDatabaseOperation.updateGLIM(1);
loanTestHelper = new LoanTestHelper(selenium);
navigationHelper = new NavigationHelper(selenium);
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2011, 03, 1, 13, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
}
Aggregations