Search in sources :

Example 1 with TestSaveCollectionSheetUtils

use of org.mifos.application.servicefacade.TestSaveCollectionSheetUtils in project head by mifos.

the class ApplyHolidayChangesHelperIntegrationTest method cleanDatabaseTablesAndSetupCustomerTestDataBeforeTest.

@Before
public void cleanDatabaseTablesAndSetupCustomerTestDataBeforeTest() throws Exception {
    databaseCleaner.clean();
    dateTimeService.setCurrentDateTime(new DateTime().withYear(2010).withMonthOfYear(DateTimeConstants.FEBRUARY).withDayOfMonth(23));
    ApplyHolidayChangesTask applyHolidayChangesTask = new ApplyHolidayChangesTask();
    applyHolidayChangesHelper = (ApplyHolidayChangesHelper) applyHolidayChangesTask.getTaskHelper();
    testSaveCollectionSheetUtils = new TestSaveCollectionSheetUtils();
    testCollectionSheetRetrieveSavingsAccountsUtils = new TestCollectionSheetRetrieveSavingsAccountsUtils();
    // create center hierarchy with loan and savings and customer accounts.
    createCenterHierarchy(dateTimeService.getCurrentJavaDateTime());
    StaticHibernateUtil.flushAndClearSession();
}
Also used : TestSaveCollectionSheetUtils(org.mifos.application.servicefacade.TestSaveCollectionSheetUtils) TestCollectionSheetRetrieveSavingsAccountsUtils(org.mifos.application.servicefacade.TestCollectionSheetRetrieveSavingsAccountsUtils) DateTime(org.joda.time.DateTime) Before(org.junit.Before)

Aggregations

DateTime (org.joda.time.DateTime)1 Before (org.junit.Before)1 TestCollectionSheetRetrieveSavingsAccountsUtils (org.mifos.application.servicefacade.TestCollectionSheetRetrieveSavingsAccountsUtils)1 TestSaveCollectionSheetUtils (org.mifos.application.servicefacade.TestSaveCollectionSheetUtils)1