use of org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper in project head by mifos.
the class BatchJobPenaltyTest method shouldNotCalculatePenaltyAfterManuallyRunBatchJob.
@Test(enabled = true)
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
public void shouldNotCalculatePenaltyAfterManuallyRunBatchJob() throws Exception {
String accountId = setUpPenaltyAndLoanAccount("Penalty Correct", PenaltyFormParameters.PERIOD_NONE, "", PenaltyFormParameters.FREQUENCY_DAILY, "0.1", "9,999,999,999");
changeDateTime(03, 15);
for (int i = 0; i < 2; ++i) {
penaltyHelper.verifyCalculatePenaltyWithPayment(accountId, new String[] { "42", "0", "42" }, new String[][] { { "0", "450" }, null, /* Installments due */
{ "21", "471" }, { "14", "464" }, { "7", "457" }, { "0", "450" }, null, /* Future Installments */
{ "0", "450" }, { "0", "450" }, { "0", "450" }, { "0", "450" }, { "0", "450" } }, new String[] { "1,842", "15/03/2012", "1,392" });
navigationHelper.navigateToAdminPage();
new BatchJobHelper(selenium).runSomeBatchJobs(Arrays.asList("ApplyPenaltyToLoanAccountsTaskJob"));
}
}
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);
}
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);
}
Aggregations