use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class SavingsDepositTest 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.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class SearchCustomerTest method tearDown.
@AfterMethod
public void tearDown() {
(new MifosPage(selenium)).logout();
new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class WaiveLoanFeeTest method setUp.
@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
super.setUp();
appLauncher = new AppLauncher(selenium);
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2011, 2, 28, 14, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
}
use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class CreateLSIMClientLoanAccountTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
applicationDatabaseOperation.updateLSIM(1);
navigationHelper = new NavigationHelper(selenium);
loanTestHelper = new LoanTestHelper(selenium);
loanProductTestHelper = new LoanProductTestHelper(selenium);
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2010, 1, 22, 10, 55, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
}
use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class CreateLSIMClientLoanAccountTest method newMonthlyClientLoanAccountWithMeetingOnSameWeekAndWeekday.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// https://mifosforge.jira.com/browse/MIFOS-5852
@Test(enabled = true)
public void newMonthlyClientLoanAccountWithMeetingOnSameWeekAndWeekday() throws Exception {
//Given
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2010, 5, 22, 10, 55, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
//Then
CreateLoanAccountSearchParameters searchParameters = new CreateLoanAccountSearchParameters();
searchParameters.setSearchString("Monthly3rdFriday");
searchParameters.setLoanProduct("MonthlyClientFlatLoanThirdFridayOfMonth");
expectedDate = "08-Jul-2010";
CreateLoanAccountSubmitParameters submitAccountParameters = new CreateLoanAccountSubmitParameters();
submitAccountParameters.setAmount("2765.0");
submitAccountParameters.setLoanPurpose("0008-Animal Trading");
// create LSIM loan that has repayments on 2nd Thursday of each month
submitAccountParameters.setLsimFrequencyMonths("on");
submitAccountParameters.setLsimMonthTypeNthWeekdayOfMonth("on");
submitAccountParameters.setLsimMonthRank("Second");
submitAccountParameters.setLsimWeekDay("Thursday");
submitAccountParameters.setLoanPurpose("0010-Camel");
createLSIMLoanAndCheckAmountAndInstallmentDate(searchParameters, submitAccountParameters, expectedDate);
}
Aggregations