Search in sources :

Example 6 with BatchJobHelper

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"));
    }
}
Also used : BatchJobHelper(org.mifos.test.acceptance.framework.testhelpers.BatchJobHelper) Test(org.testng.annotations.Test)

Example 7 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 8 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