Search in sources :

Example 1 with DateTimeServiceImpl

use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.

the class ConcurStandardAccountExtractPdpEntryServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    pdpEntryService = new ConcurStandardAccountExtractPdpEntryServiceImpl();
    pdpEntryService.setPayeeNameFieldSize(new Integer(40));
    pdpEntryService.setDateTimeService(new DateTimeServiceImpl());
    reportData = new ConcurStandardAccountingExtractBatchReportData();
}
Also used : DateTimeServiceImpl(org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl) ConcurStandardAccountingExtractBatchReportData(edu.cornell.kfs.concur.batch.report.ConcurStandardAccountingExtractBatchReportData) Before(org.junit.Before)

Example 2 with DateTimeServiceImpl

use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.

the class LaborLedgerEnterpriseFeedServiceImplTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    ldService = new LaborLedgerEnterpriseFeedServiceImpl();
    ldService.setDateTimeService(new DateTimeServiceImpl());
    ldService.setAccountingPeriodService(new MockAccountingPeriodService());
}
Also used : DateTimeServiceImpl(org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl)

Example 3 with DateTimeServiceImpl

use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.

the class CuCreditMemoServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    accountsPayableService = Mockito.mock(AccountsPayableService.class);
    Mockito.when(accountsPayableService.getExpiredOrClosedAccountList(Mockito.any())).thenReturn(new HashMap<>());
    dataDictionaryService = Mockito.mock(DataDictionaryService.class);
    Mockito.when(dataDictionaryService.getAttributeMaxLength(DocumentHeader.class, KRADPropertyConstants.DOCUMENT_DESCRIPTION)).thenReturn(200);
    dateTimeService = new DateTimeServiceImpl();
    documentService = buildMockDocumentService();
    noteService = Mockito.mock(NoteService.class);
    purapService = Mockito.mock(PurapService.class);
    vendorService = new MockVendorServiceImpl();
    creditMemoServiceImpl = PowerMockito.spy(new TestCuCreditMemoServiceImpl());
    PowerMockito.doNothing().when(creditMemoServiceImpl, "reIndexDocument", Mockito.any());
    creditMemoServiceImpl.setDocumentService(documentService);
    creditMemoServiceImpl.setNoteService(noteService);
    creditMemoServiceImpl.setPurapService(purapService);
    creditMemoServiceImpl.setAccountsPayableService(accountsPayableService);
    creditMemoServiceImpl.setVendorService(vendorService);
    creditMemoServiceImpl.setDataDictionaryService(dataDictionaryService);
    creditMemoDocument = setupVendorCreditMemoDocument();
    mls398Person = MockPersonUtil.createMockPerson(UserNameFixture.mls398);
    mls398Session = MockPersonUtil.createMockUserSession(mls398Person);
    GlobalVariables.setUserSession(mls398Session);
}
Also used : DateTimeServiceImpl(org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl) PurapService(org.kuali.kfs.module.purap.document.service.PurapService) NoteService(org.kuali.kfs.krad.service.NoteService) AccountsPayableService(org.kuali.kfs.module.purap.document.service.AccountsPayableService) DataDictionaryService(org.kuali.kfs.datadictionary.legacy.DataDictionaryService) Before(org.junit.Before)

Example 4 with DateTimeServiceImpl

use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.

the class ConcurStandardAccountingExtractCollectorBatchBuilderTest method setUp.

@Before
public void setUp() throws Exception {
    concurRequestedCashAdvanceService = buildMockRequestedCashAdvanceService();
    concurStandardAccountingExtractCashAdvanceService = new ConcurStandardAccountingExtractCashAdvanceServiceImpl();
    configurationService = buildMockConfigurationService();
    concurBatchUtilityService = new ConcurBatchUtilityServiceImpl();
    optionsService = buildMockOptionsService();
    universityDateService = buildMockUniversityDateService();
    dateTimeService = new DateTimeServiceImpl();
    concurSAEValidationService = buildMockConcurSAEValidationService();
    builder = new TestConcurStandardAccountingExtractCollectorBatchBuilder(concurRequestedCashAdvanceService, concurStandardAccountingExtractCashAdvanceService, configurationService, concurBatchUtilityService, optionsService, universityDateService, dateTimeService, concurSAEValidationService, this::getParameterValue);
}
Also used : DateTimeServiceImpl(org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl) Before(org.junit.Before)

Example 5 with DateTimeServiceImpl

use of org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl in project cu-kfs by CU-CommunityApps.

the class AdvanceDepositServiceImplTest method setUp.

@Before
public void setUp() {
    advanceDepositService = new TestableAdvanceDepositServiceImpl();
    advanceDepositService.setBusinessObjectService(new MockBusinessObjectService());
    advanceDepositService.setDateTimeService(new DateTimeServiceImpl());
    advanceDepositService.setParameterService(new MockParameterServiceImpl());
    mapping = new IncomingWireAchMapping();
    mapping.setShortDescription("ARMY");
    advanceDepositDocument = mock(AdvanceDepositDocument.class, CALLS_REAL_METHODS);
    GlobalVariables.getMessageMap().clearErrorMessages();
}
Also used : DateTimeServiceImpl(org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl) MockParameterServiceImpl(edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl) AdvanceDepositDocument(org.kuali.kfs.fp.document.AdvanceDepositDocument) IncomingWireAchMapping(edu.cornell.kfs.fp.businessobject.IncomingWireAchMapping) Before(org.junit.Before)

Aggregations

DateTimeServiceImpl (org.kuali.kfs.core.impl.datetime.DateTimeServiceImpl)5 Before (org.junit.Before)4 ConcurStandardAccountingExtractBatchReportData (edu.cornell.kfs.concur.batch.report.ConcurStandardAccountingExtractBatchReportData)1 IncomingWireAchMapping (edu.cornell.kfs.fp.businessobject.IncomingWireAchMapping)1 MockParameterServiceImpl (edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl)1 DataDictionaryService (org.kuali.kfs.datadictionary.legacy.DataDictionaryService)1 AdvanceDepositDocument (org.kuali.kfs.fp.document.AdvanceDepositDocument)1 NoteService (org.kuali.kfs.krad.service.NoteService)1 AccountsPayableService (org.kuali.kfs.module.purap.document.service.AccountsPayableService)1 PurapService (org.kuali.kfs.module.purap.document.service.PurapService)1