use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class RESTAPITest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeClass
public void setUp() throws Exception {
super.setUp();
//Given
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2011, 9, 13, 13, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "REST_API_20110912_dbunit.xml", dataSource, selenium);
helper = new RESTAPITestHelper(selenium);
helper.navigateToJsonAjaxPage();
}
use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class CenterMeetingTest method setTime.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void setTime(DateTime time) throws Exception {
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
dateTimeUpdaterRemoteTestingService.setDateTime(time);
}
use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class LoanImportTest method logOut.
@AfterMethod
public void logOut() {
(new MifosPage(selenium)).logout();
new DateTimeUpdaterRemoteTestingService(selenium).resetDateTime();
}
use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class MonthClosingTest method testDisbursalBeforeMonthClosingDate.
@Test(enabled = true)
public void testDisbursalBeforeMonthClosingDate() throws UnsupportedEncodingException {
// When
new DateTimeUpdaterRemoteTestingService(selenium).setDateTime(new DateTime(2012, 1, 10, 12, 0, 0, 0));
navigationHelper.navigateToAdminPage().navigateToMonthClosing().fillMonthClosingDate("20/01/12").submit().verifyCurrentMonthClosingDate("20/01/12");
// Then
DefineNewLoanProductPage.SubmitFormParameters formParameters = FormParametersHelper.getWeeklyLoanProductParameters();
loanProductTestHelper.navigateToDefineNewLoanPageAndFillMandatoryFields(formParameters).submitAndGotoNewLoanProductPreviewPage().submit();
loanTestHelper.createLoanAccount("WeeklyClient Monday", formParameters.getOfferingName()).changeAccountStatusToAccepted().navigateToDisburseLoan().submitAndNavigateToDisburseLoanConfirmationPage(DisburseLoanParameters.getDisbursalParameters("10", "01", "2012")).submitButDisbursalFailed("Date of transaction is invalid. This date has already been closed for accounting.");
}
use of org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService in project head by mifos.
the class ClientTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
navigationHelper = new NavigationHelper(selenium);
propertiesHelper = new CustomPropertiesHelper(selenium);
clientTestHelper = new ClientTestHelper(selenium);
questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
groupTestHelper = new GroupTestHelper(selenium);
savingsAccountHelper = new SavingsAccountHelper(selenium);
savingsProductHelper = new SavingsProductHelper(selenium);
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
targetTime = new DateTime(2009, 7, 11, 12, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
feeTestHelper = new FeeTestHelper(dataSetup, navigationHelper);
loanTestHelper = new LoanTestHelper(selenium);
}
Aggregations