Search in sources :

Example 1 with BatchJobHelper

use of org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper in project head by mifos.

the class BatchJobPenaltyTest method changeDateTime.

private void changeDateTime(final int month, final int day) throws Exception {
    dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2012, month, day, 13, 0, 0, 0));
    navigationHelper.navigateToAdminPage();
    new BatchJobHelper(selenium).runSomeBatchJobs(Arrays.asList("ApplyPenaltyToLoanAccountsTaskJob"));
}
Also used : BatchJobHelper(org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper) DateTime(org.joda.time.DateTime)

Example 2 with BatchJobHelper

use of org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper in project head by mifos.

the class RemovePenaltiesTest method changeDateTime.

private void changeDateTime(final int month, final int day) throws Exception {
    dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2012, month, day, 13, 0, 0, 0));
    navigationHelper.navigateToAdminPage();
    new BatchJobHelper(selenium).runSomeBatchJobs(Arrays.asList("ApplyPenaltyToLoanAccountsTaskJob"));
}
Also used : BatchJobHelper(org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper) DateTime(org.joda.time.DateTime)

Example 3 with BatchJobHelper

use of org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper in project head by mifos.

the class BatchJobTest method testRunAllBatchJobs.

@Test(enabled = true)
public //http://mifosforge.jira.com/browse/MIFOSTEST-715
void testRunAllBatchJobs() {
    //When
    navigationHelper.navigateToAdminPage();
    //Then
    new BatchJobHelper(selenium).runAllBatchJobs();
}
Also used : BatchJobHelper(org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper) Test(org.testng.annotations.Test)

Example 4 with BatchJobHelper

use of org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper in project head by mifos.

the class NoDBUnitAdditionalHolidayTest method runHolidayBatchJob.

private void runHolidayBatchJob() throws SQLException {
    applicationDatabaseOperation.cleanBatchJobTables();
    List<String> jobsToRun = new ArrayList<String>();
    jobsToRun.add("ApplyHolidayChangesTaskJob");
    new BatchJobHelper(selenium).runSomeBatchJobs(jobsToRun);
}
Also used : BatchJobHelper(org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper) ArrayList(java.util.ArrayList)

Example 5 with BatchJobHelper

use of org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper in project head by mifos.

the class AdditionalSavingsAccountTest method runBatchJobsForSavingsIntPosting.

private void runBatchJobsForSavingsIntPosting() {
    List<String> jobsToRun = new ArrayList<String>();
    jobsToRun.add("SavingsIntPostingTaskJob");
    new BatchJobHelper(selenium).runSomeBatchJobs(jobsToRun);
}
Also used : BatchJobHelper(org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper) ArrayList(java.util.ArrayList)

Aggregations

BatchJobHelper (org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper)8 ArrayList (java.util.ArrayList)4 DateTime (org.joda.time.DateTime)3 Test (org.testng.annotations.Test)2 CreateHolidaySubmitParameters (org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage.CreateHolidaySubmitParameters)1 ChargeParameters (org.mifos.test.acceptance.framework.loan.ChargeParameters)1